Martin Stjernholm skrev:
> Pontus Rodling <<pontus[at]digitalfractions.net>> wrote:
>
>
>> This is the code I was working on when i triggered the bug.
>> Simply put a folder with a UTF-8 name somewhere in c:/test and it
>> should cause it to crash.
>>
>
> Getting a better minimized test case would have been nice. I reduced
> it to this:
>
> #charset utf-8
> int main()
> {
> werror ("%O\n", combine_path_nt ("test", "€uro"));
> }
>
> Annoyingly enough it doesn't fail on unix (neither 32- nor 64-bit) and
> not in windbg. Where is Valgrind4Windows? :P
>
That indeed is smaller and crashes, yea :P
I should also learn to put code as an attachment and not inline, doh!
Anyway, a custom combine_path function will have to do for now.
// Pontus
|