This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug localedata/3140] SHIFT_JISX0213 incorrectly marked as __stateful
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Sep 2006 14:09:26 -0000
- Subject: [Bug localedata/3140] SHIFT_JISX0213 incorrectly marked as __stateful
- References: <20060827233953.3140.pasky@suse.cz>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bruno at clisp dot org 2006-09-02 14:09 -------
The SHIFT_JISX0213 converter is stateful because the characters listed
in __jisx0213_to_ucs_combining are single characters in SHIFT_JISX0213
but pairs of Unicode characters in Unicode space. Since glibc has chosen
that its wide character representation is identical to Unicode, and since
mbrtowc() produces only 1 wide character at a time, we cannot accomodate
a stateless converter for SHIFT_JISX0213 in glibc.
A workaround would be to define private area codepoints for each of these
25 characters, but this would lead to hassles elsewhere in the applications
that use glibc.
By the way, the SHIFT_JISX0213 encoding is not US-ASCII compatible, therefore
a locale that would use this encoding would not be ISO C 99 compliant anyway.
For these two reasons, I'd say: forget about locales with SHIFT_JISX0213
encoding.
> the whole point of it is that it involves no shift states
Where do you got this understanding? References?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3140
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.