[#4595] New block syntax — Daniel Amelang <daniel.amelang@...>

I'm really sorry if this isn't the place to talk about this. I've

25 messages 2005/03/21
[#4606] Re: New block syntax — "David A. Black" <dblack@...> 2005/03/21

Hi --

[#4629] Re: New block syntax — "Sean E. Russell" <ser@...> 2005/03/30

On Monday 21 March 2005 16:17, David A. Black wrote:

[#4648] about REXML::Encoding — speakillof <speakillof@...>

Hi.

15 messages 2005/03/31
[#4659] Re: about REXML::Encoding — "Sean E. Russell" <ser@...> 2005/04/04

On Thursday 31 March 2005 09:44, speakillof wrote:

Win32 Non-ASCII Filename Access

From: Austin Ziegler <halostatue@...>
Date: 2005-03-09 15:51:35 UTC
List: ruby-core #4534
Matz,

I have been working on stuff at work that involves non-ASCII filenames
on Windows, with differing character sets (such as "日本語" and 
"jalapeño"). Windows stores these filenames as UCS-2 entries on all
modern filesystems (FAT32 and NTFS).

The win32 directory and filename handling is using FindFirstFile
instead of FindFirstFileW; this means that it will never be possible
to handle certain filenames in Ruby.

I don't have a problem working on fixing this -- I have the knowledge
now to do so -- but the best fix that I can determine would produce
UTF-8 file names. Since Ruby strings are by default unencoded, how
would I handle this? Should I use $KCODE = 'u' and look to see what
the $KCODE is before handling this?

I'd like to fix this, as there are things that I could do with Ruby if
this were the case (it would also allow for filenames up to 32k wide
characters long, in chunks of 256 wide characters). Please advise on
the preferred way to handle this sort of thing.

I don't think it's as big an issue on Unix-based operating systems
except perhaps MacOS, because most other Unix OSes can't handle wide
character filenames and will therefore encode most international
filenames as UTF-8, if the environment setting is correct.

-austin
-- 
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca


In This Thread

Prev Next