[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Passage en UTF-8 par défaut



2005/9/5, Thomas CLavier <tclavier@partner.auchan.com>:
> Josselin Mouette a écrit :
> > Bon, c'est fini ce délire avec G_BROKEN_FILENAMES ? Non seulement cette
> > variable n'existe plus depuis belle lurette, mais les bidouillages avec
> > la gestion des locales de la glib n'ont jamais permis ce genre de
> > miracles.

[...]

> Mais peut-être que gqview ne devrait plus gérer cette variable trop
> vielle :-))

Les deux ont un peu raison :) le G_BROKEN_FILENAMES est désuet mais
cela n'empêche pas d'avoir un remplaçant qui fait la même chose :
extrait du README.gz du paquet de la bibliothèque gtk-2.0 sous Srage :

 On Unix, the assumption of GLib and GTK+ by default is that filenames on
  the filesystem are encoded in UTF-8 rather than the encoding of the locale;
  the GTK+ developers consider that having filenames whose interpretation
  depends on the current locale is fundamentally a bad idea.

  If you have filenames encoded in the encoding of your locale, then you
  may want to set the G_FILENAME_ENCODING environment variable:

   G_FILENAME_ENCODING=@locale
   export G_FILENAME_ENCODING

  (Earlier versions of GLib 2.x required a different environment variable
  setting; G_BROKEN_FILENAMES=1 to achieve the same effect; this
  is still supported, but G_FILENAME_ENCODING is preferred.)
  Best integration of GTK+ 2.6 with the environment is achieved by
  using a UTF-8 locale.

PK

-- 
      |\      _,,,---,,_       Patrice KARATCHENTZEFF
ZZZzz /,`.-'`'    -.  ;-;;,_   mailto:p.karatchentzeff@free.fr
     |,4-  ) )-,_. ,\ (  `'-'  http://p.karatchentzeff.free.fr
    '---''(_/--'  `-'\_)



Reply to: