diff --git a/src/builtin_functions.c b/src/builtin_functions.c index 430543be98c4fcf70fb256e83db037823d836366..f2035bc8043f36f25075d0423ce55cee7d51ffe7 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: builtin_functions.c,v 1.126 1998/10/09 23:12:45 grubba Exp $"); +RCSID("$Id: builtin_functions.c,v 1.127 1998/10/10 00:23:49 grubba Exp $"); #include "interpret.h" #include "svalue.h" #include "pike_macros.h" @@ -608,7 +608,7 @@ void f_string_to_unicode(INT32 args) INT32 len; int i; - get_all_args("string_to_unicode", args, "%S", &in); + get_all_args("string_to_unicode", args, "%W", &in); switch(in->size_shift) { case 0: @@ -716,10 +716,6 @@ void f_unicode_to_string(INT32 args) get_all_args("unicode_to_string", args, "%S", &in); - if (in->size_shift) { - error("unicode_to_string(): Argument in not an 8bit string.\n"); - } - if (in->len & 1) { error("unicode_to_string(): String length is odd.\n"); }