[<--] Indice [-->]

From jaromil <jaromil@dyne.org>
Date Fri, 12 Nov 2004 02:14:22 +0100
Subject Re: [Hackmeeting] ABSURD localization of the radix character in libc!!!!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Nov 12, 2004 at 01:24:29AM +0100, marc0@autistici.org wrote:
> jaromil on Thu, 11 Nov 2004 23:46:13 +0100 writes:
> 
> (snip)
> 
> > $ export LANG=C
> > $ ./test
> > read: 1.234 -> 1.234000
> > $ export LANG=sl_SI
> 
> (funziona anche con it_IT)
> 
> > $ ./test
> > read: 1.234 -> 1,000000
> 
> cosa ti aspettavi? 1,234 o 1234?
> 
> se 1,234 non devi usare LC_ALL ma LC_MESSAGES:
> 
>  <http://www.gnu.org/software/gettext/manual/html_chapter/gettext_3.html#SEC14>

e' un casino, mi sto ALLUCINANDO

questa cosa ha propagato bugs in GTK, GLIB, Python....

GUARDA

http://www.sourcekeg.co.uk/www.python.org/peps/pep-0331.html

in gtk all'inizio hanno fixato wrappando la chiamata tra due reset del
locale (PAZZESCO) finche' qualcuno non ha fatto notare la porcheria, poi
e' arrivata questa patch:

http://mail.gnome.org/archives/gtk-devel-list/2001-October/msg00114.html

attenzione, leggila attentamente....

che te ne pare????

BHE' QUELLA COSA SI E' PROPAGATA! guarda:

http://cvs.cairographics.org/libsvg/src/svg_ascii.c?rev=1.2&view=auto

finisce pure nel supporto SVG nativo per X

a me pare che potrebbe essere scritto qualcosa di MOLTO piu' semplice
per parsare stringhe<->numeri con virgola mobile, no?

ciao

- -- 
 jaromil,  dyne.org rasta coder,  http://rastasoft.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Cryptographically signed mail, see http://gnupg.org

iD8DBQFBlA5uWLCC1ltubZcRAp20AJ9yErNLAxnF2GqQhyl/fsM9DDvAywCgjXnb
Ak2aSS845nCZDfkdftTc+xg=
=CWxC
-----END PGP SIGNATURE-----
_______________________________________________
Hackmeeting mailing list
Hackmeeting@kyuzz.org
https://inventati.org/mailman/listinfo/hackmeeting

[<--] Indice [-->]