bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-19 Thread Mark H Weaver
Mark H Weaver writes: > I'll leave this bug open at least until 'seed->random-state your-seed' > is fixed to support wide strings. This part is now fixed in commit fbdcf6358519c415bd2041ca09bee9b16e9d528a on the stable-2.2 branch. Mark

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-18 Thread Tom de Vries
On 10/18/18 3:56 AM, Mark H Weaver wrote: > Hi Tom, > > Tom de Vries writes: > >> On 10/16/18 3:57 AM, Mark H Weaver wrote: >>> Thanks for the report, analysis and patch. I agree with your analysis, >>> and the patch looks good. >>> >> >> If so, can the patch be committed? > > I just pushed co

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-17 Thread Mark H Weaver
Hi Tom, Tom de Vries writes: > On 10/16/18 3:57 AM, Mark H Weaver wrote: >> Thanks for the report, analysis and patch. I agree with your analysis, >> and the patch looks good. >> > > If so, can the patch be committed? I just pushed commit c2a654b7d29f5e2f32fd1313cc80162fd0c8f992 to the stable

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-17 Thread Tom de Vries
On 10/16/18 7:13 AM, Mark H Weaver wrote: > While investigating, I found this bug for GNU libc asking to add an SJIS > locale, and the developers were strongly opposed: > > https://bugzilla.redhat.com/show_bug.cgi?id=136290 FTR, that's a discussion of Fedora/RedHat developers. This OpenSuse/Su

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-16 Thread Tom de Vries
On 10/16/18 7:13 AM, Mark H Weaver wrote: > While investigating, I found this bug for GNU libc asking to add an SJIS > locale, and the developers were strongly opposed: > > https://bugzilla.redhat.com/show_bug.cgi?id=136290 > Thanks for the pointer, that was interesting reading. > At this poi

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-16 Thread Tom de Vries
On 10/16/18 3:57 AM, Mark H Weaver wrote: > retitle 33044 Guile misbehaves in the "ja_JP.sjis" locale > thanks > > Hi Tom, > > Thanks for the report, analysis and patch. I agree with your analysis, > and the patch looks good. > If so, can the patch be committed? I'm running into this problem

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-16 Thread John Cowan
At this point, I'm inclined to believe that Shift_JIS is not suitable as > a locale encoding on POSIX systems, and that we should not try to > support it in Guile. > > What do you think? > > Can you tell me how backslash and tilde are represented in Shift JIS? > They aren't: iconv is right. Japa

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-15 Thread Mark H Weaver
Mark H Weaver writes: > Shift_JIS is _mostly_ ASCII-compatible, except that code points 0x5C and > 0x7E, which represent backslash (\) and tilde (~) in ASCII, are mapped > to the Yen sign (¥) and overline (‾) in Shift_JIS. Backslash (\) and > tilde (~) are multibyte characters in Shift_JIS. Alt

bug#33044: Guile misbehaves in the "ja_JP.sjis" locale

2018-10-15 Thread Mark H Weaver
retitle 33044 Guile misbehaves in the "ja_JP.sjis" locale thanks Hi Tom, Thanks for the report, analysis and patch. I agree with your analysis, and the patch looks good. However, there's also a much deeper problem here. You found and fixed one occurrence of Guile assuming that the locale encod