[cfe-dev] [LLVMdev] Unicode path handling on Windows

Bryce Cogswell bryceco at gmail.com
Mon Oct 3 23:24:06 PDT 2011

That should be fine. I don't believe the concern about performing a char-by-char conversion is valid; for example the NTFS-3G driver uses a simplistic upcase table and seems to work fine. I suspect Windows does the same.

On Oct 3, 2011, at 1:12 PM, Nikola Smiljanic wrote:

> How about this:
> for (int i = 0; i != NumWChars; ++i)
>         absPath[i] = std::tolower(absPath[i], std::locale());
> seems to be working just fine?
> On Mon, Oct 3, 2011 at 9:27 PM, Bryce Cogswell <bryceco at gmail.com> wrote:
> Right, but maybe if you switch to using tolower_l() and pass an appropriate locale you can get it to work the same way. I'm not sure what locale that would have to be, but it needs to match whatever NTFS uses for its $upcase file.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111003/95923b63/attachment.html>

More information about the cfe-dev mailing list