On Thu, 14 Apr 2005 01:03:45 +0900 David Stevenson <[EMAIL PROTECTED]> babbled:
(B
(B> Some observations after discussions on #edevelop...
(B> 
(B> 1) dj2 and I were wondering why e_main_dirs_init call e_intl_shutdown. 
(B> anybody?
(B> The shutdown frees the list of languages, pretty much straight away
(B> after it is initialized.
(B> Is this right?
(B
(Bthat was just silliness on my part
(B
(B> 2) the LANG environment variable seems to be getting clobbered during
(B> initialization.
(B
(Bmm indeed putenv nasitness. wrapped now. :)
(B
(B> I used printf statements to track down the snprintf call in
(B> _e_main_dirs_init as the culprit:
(B> 
(B> ...
(B>    homedir = e_user_homedir_get();
(B>    if (!homedir) return 0;
(B>    for (i = 0; i < (int)(sizeof(dirs) / sizeof(char *)); i++)
(B>      {
(B> +       printf("LANG 66 :%s\n",getenv("LANG"));
(B>         snprintf(buf, sizeof(buf), dirs[i], homedir);
(B> +       printf("buf is %s\n", buf);
(B> +       printf("LANG 99 :%s\n",getenv("LANG"));
(B> ...
(B> 
(B> produces the following:
(B> 
(B> LANG 66 :ja_JP.UTF-8
(B> buf is /home/david/.e
(B> LANG 99 :(null)
(B> LANG 66 :(null)
(B> buf is /home/david/.e/e
(B> LANG 99 :(null)
(B> ...
(B> 
(B> If LANG is getting clobbered by this snprintf, other stuff probably is as 
(B> well?
(B> 
(B> 3) It's not causing any problems at this stage, but the attached
(B> little patch to e_intl.c might save someone a small headache later :-)
(B> (ja is the iso639 code for Japanese language, JP is the iso code for
(B> the Japan territory)
(B
(Byeah - it SHOULD have been ja - not jp :)
(B
(B> 4) Question: Should I be able to get Japanese in E17 to display using
(B> LANG=ja_JP.EUC-JP?
(B
(Byou SHOULD as e explicitly asks for utf8 encoding from gettext. it SHOULD work. 
(Bi personally use utf8 in my locale anyway.
(B
(B> I got square boxes etc instead of Japanese with this setting, but when
(B> I changed to ja_JP.UTF-8 things came right with E17 (but messed up
(B> some of my japanese apps ^-^).
(B
(Bhmmm...
(B
(B> Regards,
(B> 
(B> [EMAIL PROTECTED] (e-taro)
(B
(B
(B-- 
(B------------- Codito, ergo sum - "I code, therefore I am" --------------
(BThe Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
$BMg9%B?(B                              [EMAIL PROTECTED]
(BTokyo, Japan ($BEl5~(B $BF|K\(B)
(B
(B
(B-------------------------------------------------------
(BSF email is sponsored by - The IT Product Guide
(BRead honest & candid reviews on hundreds of IT Products from real users.
(BDiscover which products truly live up to the hype. Start reading now.
(Bhttp://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
(B_______________________________________________
(Benlightenment-devel mailing list
([email protected]
(Bhttps://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to