|
From: Tor L. <tm...@ik...> - 2005-12-16 08:37:17
|
Greg Chicares writes: > Even if you can use fnmatch() by providing a prototype and linking a > library that provides it, it might not do what you'd expect with native > msw paths. Also worth mentioning is that a straightforward port of a Unix fnmatch() implementation won't work correctly with filenames that contain double-byte characters, as used in East Asian locales. There are double-byte characters in the CJK codepages that have the slash as trailing byte! Either you should use wide character APIs and pathnames, or be prepared to handle double-byte characters. --tml |