Re: [PATCH] libghttp and locale != C



>>>> "VH" == Vlad Harchev <hvv hippo ru> writes:

[...]

>> Hm. If that library could be used by multithreaded programs (and I don't
>> see why not), then you can't call setlocale() in it, because it might
>> change locale for some unrelated thread and cause the same type of bug
>> you're trying to fix.

VH>  Then we should store integer and fractional part as two integers and print
VH> them as "%d.%d".  libghttp should work under any locale anyway.

This will better. My patch is a big hack.

Christian




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]