Re: Bug in dir() leads to Unicode and win_dir()

new topic     » goto parent     » topic index » view thread      » older message » newer message

> But anyway it is just Windows feature, not dir() bug,
> I think. Correct me please, if I'm wrong.

All of Windows 2000/XP uses the Unicode (W) versions of functions. All
ANSI (A)versions are just backward compatible. When converting from
Unicode to ANSI, any unknown characters are replaced by a '?' as the
default character. I just learned this recently. So in reality, this
isn't even a bug, it's a Microsoft "feature" but either way, it has
caused me some issues. I tried creating file names with characters
from 129-255 and all I got back for some of them was a '?' character.

Thus the need to for win_dir() with Unicode support. Besides, who
doesn't want 32,767 character file names? :)

~Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu