[MPlayer-users] BUG: locales and configuration files

Ponekker Zoltan pontscho at kac.poliod.hu
Tue Jul 30 13:38:02 CEST 2002


Hali

Very, very thanksz :)

Pontscho

On Sat, 27 Jul 2002, Petr Ferschmann wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I want to submit BUG report. I found error in mplayer.
>
> In czech countries we are not using numbers in this format:
> 0.1234 but instead 0,1234
>
> so if you set setlocale( LC_ALL, "" ) and use printf( "%f\n", 0.1234 ); i=
t
> prints 0,1234. Of course function strtod can handle it properly (I checke=
d it
> on my system).
>
> So to the problem:
> there is configuration file gui.conf. It have some floating point values.=
 When
> I run mplayer for first time it starts properly but overwrites this
> configuration file and adds 0,0000. But when I start mplayer next time it
> opens this configuration file and can't read it with:
>
> /home/fers/.mplayer/gui.conf(40): equ_band_10
> parameter must be a floating point number or a ratio
> (numerator[:/]denominator): 0,000000
>
> So what is wrong?
> I am using GUI with czech language. I also find that setlocale( LC_ALL, "=
" )
> in mp_msg.c is commented out (at least when symbol USE_I18N is not define=
d).
>
> The program starts without support for czech support. Read the configurat=
ion
> and starts GTK+ gui. But it uses czech language (for buttons etc) so it c=
alls
> setlocale( LC_ALL, "" );
> And later the program saves configuration (but with czech support).
>
> How to fix that?
> If there is no special problem I recommend calling setlocale( LC_ALL, "" =
)
> always at start. Or at least when I am using GUI.
>
> Please send answers directly to my address because I am not member of mpl=
ayer
> mailgroup.
>
> Some info about my system:
> Debian unstable
> mplayer CVS-020727-10:20-2.95.4
> Linux penelope 2.4.18 #11 Po =E8en 10 15:32:21 CEST 2002 i686 unknown unk=
nown
> gcc version  2.95.4
> gtk+ version 1.2.10
> glibc 2.2.5-7
>
> and my locales are:
> LANG=3Dcs_CZ.ISO-8859-2
> LC_ALL=3Dcs_CZ.ISO-8859-2
>
> =09=09=09With regards
>
>                                   Petr "Fers" Ferschmann
>
> PS: your code indentation is strange and unreadable :-(
> PS2: mplayer is good peace of software :-)
>
> - --
>
>  -=3D[  petr at ferschmann.cz  ]=3D=3D[ http://petr.ferschmann.cz/ ]=3D-
> - -=3D[ Koukni na http://www.postcard.cz/ ]=3D=3D[ +420 604/781 009 ]=3D-
>
> GPG Fingerprint:
> [83B0 6378 7A9D D993 035E  60BD FEEC F665 D2C8 1B9A]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9Qrkc/uz2ZdLIG5oRAq5yAJ9eByCqE3BrdlkM2xiqOg5DkBgVKwCgnIF4
> 91y5JES7kKGk0Mxgft/ATRo=3D
> =3DgN2G
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
>





More information about the MPlayer-users mailing list