pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-10-09
1998-10-09 22:44:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>
01c10843099873d23077a62afa9f322d40a11a15 (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed bug in string_to_unicode().
Rev: src/builtin_functions.c:1.125
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
124
1998/10/09 22:
28
:
35
grubba Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
125
1998/10/09 22:
44
:
25
grubba Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
650:
/* 32 bit characters -- Is someone writing in Klingon? */ { p_wchar2 *str2 = STR2(in);
-
int j
=
(
len = in->len * 2
)
;
+
int j
;
+
len = in->len * 2;
/* Check how many extra wide characters there are. */ for(i = in->len; i--;) { if (str2[i] > 0xfffd) {
672:
} } out = begin_shared_string(len);
-
/*
j
is
initialized above. */
+
j
=
len;
for(i = in->len; i--;) { unsigned INT32 c = str2[i];