[MPlayer-dev-eng] [PATCH] Use _NET_WM_NAME for UTF-8 title in X11 if supported
Matthias Hopf
mat at mshopf.de
Thu Jun 22 14:46:21 CEST 2006
On Jun 21, 06 22:50:26 -0400, Rich Felker wrote:
> > > P.S. It would have been incredibly easy for C to add a flag to the
> > > printf format specifiers to indicate whether to use a localized format
> > > or the "C locale" format when printing numbers, but instead they chose
> > > the incredibly broken and stupid way, making locale essentially
> > > useless in practice...
> >
> > char *saved = setlocale(LC_NUMERIC, "C");
> > printf("%f\n", blah);
> > setlocale(LC_NUMERIC, saved);
>
> Not thread-safe. :) I hate threads but some (many) developers on other
> projects want them.
At least glibc and *BSD libcs have xlocale.h, which gives you
thread-safe locale switching.
I know, this is not standardized in any way. But at least glibc and BSD
look similar.
FWIW
Matthias
--
Matthias Hopf <mhopf at suse.de> __ __ __
Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat at mshopf.de
Phone +49-911-74053-715 __) |_| __) |__ labs www.mshopf.de
More information about the MPlayer-dev-eng
mailing list