[MPlayer-dev-eng] [PATCH] Use _NET_WM_NAME for UTF-8 title in X11 if supported
Sergey Pinaev
dfo at antex.ru
Wed Jun 21 11:28:55 CEST 2006
On Wed, 21 Jun 2006 11:04:02 +0200
Ivo <ivop at euronet.nl> wrote:
> > I didnt get your point. Thats exactly why LC_NUMERIC exist. If you want
> > "same format regardless of locale" - you call setlocale(LC_NUMERIC, "C");
> > If you want "printing messages in the user's own cultural conventions" -
> > you call setlocale(LC_NUMERIC, ""). (And user that does not like "," in
> > place of "." just sets LC_NUMERIC to "C" in his shell profile =/)
>
> The problem lies, for example, in parsers that use scanf to read a float
> value. If the locale enforces a ',' as decimal separator, reading 1.2:3.4
> with %f:%f will fail. Setting all sorts of LC_* environment variables is
> not something most "normal" users know about.
Whats the relation between ``"normal" users'' and "developers"?
Let me repeat: If you (the developer of parser that use scanf to read a float
value that ALWAYS have dot as separator) want "same format regardless of
locale" - you call setlocale(LC_NUMERIC, "C").
If you dumb enough to not call it - its your problem.
--
mail="Sergey Pinaev <dfo at antex.ru>"
url="http://`echo $mail | sed 's/.* <\(.*\)@\(.*\)>/\1.\2/'`"
More information about the MPlayer-dev-eng
mailing list