bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33053: scm_i_mirror_backslashes assumes ASCII-compatible locale enco


From: Mark H Weaver
Subject: bug#33053: scm_i_mirror_backslashes assumes ASCII-compatible locale encoding
Date: Mon, 15 Oct 2018 16:45:40 -0400

The 'scm_i_mirror_backslashes' in load.c operates on C strings in the
locale encoding, and assumes that the locale encoding is ASCII
compatible.  In the Shift_JIS encoding, used in the "JP_jp.sjis" locale,
backslash '\' is mapped to a multibyte character, and the Yen sign '¥'
is represented using code 0x5C, the same code as backslash '\' in ASCII.

As a result, users of the "JP_jp.sjis" locale will have Yen signs '¥' in
their file names converted into slashes by this function.

     Mark





reply via email to

[Prev in Thread] Current Thread [Next in Thread]