[LLVMdev] [cfe-dev] LLVM & Clang file management

Nikola Smiljanic popizdeh at gmail.com
Sat Dec 24 00:52:53 PST 2011

On Tue, Dec 6, 2011 at 11:27 AM, Manuel Klimek <klimek at google.com> wrote:

> Are there open bugs? A quick search for unicode on llvm.org/bugs
> didn't show anything windows specific.
There's http://llvm.org/bugs/show_bug.cgi?id=10348

I've been trying to fix it but can't get anyone to review the patches
(Aaron Ballman did a review but he doesn't have commit access). The problem
is that ::stat function can't handle UTF8 paths on Windows. My solution was
to get the command line arguments as UTF16 and convert them to UTF8 and
then convert them back to UTF16 before calling ::_wstat. The problem is
that stat structure is used throughout the code base, and ::_wstat has
different parameter type. This solution is far from perfect. It seems to me
that what you're discussing would solve this issue in a more general way
(maybe even fix all the mess with struct stat *StatBuf being passed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111224/ffaf9cca/attachment.html>

More information about the llvm-dev mailing list