Bug 2413 - gencat treats second 0x5c byte _JP.sjis sequence as continuation
Summary: gencat treats second 0x5c byte _JP.sjis sequence as continuation
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: 2.3.3
: P2 normal
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 22:58 UTC by Paul Brett
Modified: 2018-04-19 13:52 UTC (History)
3 users (show)

See Also:
Host: x86_64
Target: x86_64
Build: x86_64
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Brett 2006-03-02 22:58:50 UTC
In the simple ja_JP.sjis message file

$ /bin/echo -e "1 \224\\" >/tmp/tt

$ hdump /tmp/tt                   
00000000 31 20 94 5C 0A                                  1 .\.

gencat gives an error 

$ LANG=ja_JP.sjis gencat --new /tmp/tt.out /tmp/tt
/tmp/tt:1: invalid character: message ignored

This input file contains a single message numbered 1 containing the SJIS 
character represented by the double byte sequence 0x94 0x5C

The 0x5C seems to be treated as an ASCII backslash which is a continutation 
char in gencat
Comment 1 Ulrich Drepper 2006-05-02 03:24:01 UTC
You cannot use SJIS as a locale, it is not ASCII-safe.