Skip to content

Commit f05e6f2

Browse files
committed
ctype: Allow 0 for JIS codepoint in __uc2jp
0 is a valid codepoint for JIS encodings like EUC-JP Signed-off-by: Keith Packard <[email protected]>
1 parent 39f1d65 commit f05e6f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newlib/libc/ctype/jp2uc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ __uc2jp (wint_t c, int type)
204204
wint_t u;
205205
if (c == WEOF)
206206
return WEOF;
207-
for (u = 0x0001; ; u++) {
207+
for (u = 0x0000; ; u++) {
208208
if (__jp2uc(u, type) == c)
209209
return u;
210210
if (u == 0xffff)

0 commit comments

Comments
 (0)