From 1d8bb025c2554e8af017e62b73a807ff2e0697f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 10 Oct 1998 02:23:49 +0200 Subject: [PATCH] Prepared for the updated module_support.c Rev: src/builtin_functions.c:1.127 --- src/builtin_functions.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index 430543be98..f2035bc804 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"); } -- GitLab