1 Jan 2005 03:13
Directory Parsing
Ome thing you definitely should take into consideration from the start if you intend your code to be more than a "toy", is that on Windows, the actual file names in the file systems are in Unicode. You *should* use the wide character versions of the dirent functions. Using the normal (system codepage) versions does mean that your code won't be able to see all file names that can be present on a system, viz. file names containing characters not in the system codepage. (For instance, on a US or Western European machine, file names with Greek or Cyrillic characters in them.) Ignoring these issues might mean that the majority of the World will ignore your software(Continue reading)(You can wrap the wide character dirent funtions and convert the wchar_t strings back and forth into UTF-8 so that the rest of your code only sees char strings on Windows, too.) --tml ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ MinGW-users mailing list MinGW-users@... You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users
(You can wrap the wide character dirent funtions and convert the
wchar_t strings back and forth into UTF-8 so that the rest of your
code only sees char strings on Windows, too.)
--tml
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....
RSS Feed