From: Urabe Shyouhei Date: 2009-09-01T20:32:26+09:00 Subject: [ruby-core:25245] Re: [Bug #2026] String encodings are not supported by most of IO on Linux This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig18BD5BB84B7364A108888A27 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Michal Suchanek wrote: > 2009/9/1 Yui NARUSE : >> Issue #2026 has been updated by Yui NARUSE. >> >> >> Current Ruby thinks the filesystem encoding of Unix is binary. >> Because our initial research shows users of Unix expect it. >> >> As you know, Windows is UTF-16LE/Locale (see also win32-unicode-test),= >> and Mac OS X is UTF-8. >> If some OSs or distributions imply their filesystem encoding, >> we can follow it. >=20 > Any distribution that sets locale (other than C) does. That's just a default and users can override it. Even if a distro sets d= efault locate to UTF-8, a user can still generate a filename which is invalid as= a UTF-8 sequence. Ruby must be able to handle that kind of filename. Henc= e the choice of binary encoding. On the other hand AFAIK you cannot create a UTF16-invalid filename on Win= dows. --------------enig18BD5BB84B7364A108888A27 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqdBkAACgkQuTXPUnA5eMKVXQCcDpPhDBY2lYVuEBJmIpw9YE0g 80IAnAuY9HeCoa2vkoDcdHdgqblXdx3J =pPUG -----END PGP SIGNATURE----- --------------enig18BD5BB84B7364A108888A27--