UTF

Derek Atkins warlord at MIT.EDU
Thu Sep 4 11:49:23 CDT 2003


I'll note that some OSes use LANGUAGE, not LANG..  It all depends
on the implementation of setlocale() -- gnucash just tells libc to
"use the default".  So, this would be challenging, as we'd have
to muck with our environment to get it to work right...

What we need is more help on the g2 port to "solve this for good".

-derek

Jon Lapham <lapham at extracta.com.br> writes:

> I've found [1] another [2] bug related to UTF language settings (ie:
> $LANG=XXX.UTF-8).  As you may have noticed, most of the recent
> distribution releases are by default using UTF language settings, so
> this is a problem that will haunt us and continue to haunt us more in
> the future.
> 
> So, what I was thinking, is that we should look for ".UTF-8" in the
> LANG variable in the initial script bin/gnucash, and if found, strip
> it off.
> 
> Is my solution terrible and ugly?
> Yes.
> 
> Is there a better solution?
> Probably.  I'm all ears.
> 
> Is this the best solution?
> No, the best solution is apparently to wait for the gnome2 port, which
> may be a while before it is available to the masses in their favorite
> distros.  We need a solution now.
> 
> References:
> 
> [1] Run "LANG=en_US.UTF-8 gnucash" on the command line, create some
> accounts with accented characters and open a register window.  Watch
> the error messages fly!  Opening this register window takes ~5x longer
> because of these error messages when you have many accounts.  This
> works with any .UTF-8 language, not just en_US.
> 
> [2] UTF-8 GnuCash bugs:
> http://bugzilla.gnome.org/show_bug.cgi?id=102059
> http://bugzilla.gnome.org/show_bug.cgi?id=100845
> http://bugzilla.gnome.org/show_bug.cgi?id=105345
> ...and possibly...
> http://bugzilla.gnome.org/show_bug.cgi?id=84604
> 
> -- 
> -**-*-*---*-*---*-*---*-----*-*-----*---*-*---*-----*-----*-*-----*---
>   Jon Lapham  <lapham at extracta.com.br>          Rio de Janeiro, Brasil
>   Work: Extracta Moléculas Naturais SA     http://www.extracta.com.br/
>   Web: http://www.jandr.org/
> ***-*--*----*-------*------------*--------------------*---------------
> 
> 
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at lists.gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list