On Thu, 30 May 2013 00:17:11 +0200, Hans de Goede said:

>> IMHO you should use LC_MESSAGES in the usual way instead
>> of inventing your own API.  I.e. libusb_strerror() internally
>> calls setlocale(LC_MESSAGES, NULL) to query the locale.
>
>Which is exactly what it does when the apps does not make any
>call to libusb_set_strerror_locale() itself...

Wait, setlocale() queries the locale?  Wouldn't that be getlocale()?  With a 
name like setlocale(), and from my reading of the man page, that API changes 
the locale, does it not?  As a library, it doesn't seem right for libusb to be 
changing the process' locale settings.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to