Bug 4209

From: Raphael Finkel (raphael@cs.uky.edu)
Date: Thu Aug 28 2003 - 15:44:01 EDT

  • Next message: Marc Maurer: "Re: Bug 4209"

    Bug 4209 can be addressed by the following patch.

    --- src/wp/ap/unix/ap_UnixPrefs.cpp 29 Oct 2002 19:46:01 -0000 1.17
    +++ src/wp/ap/unix/ap_UnixPrefs.cpp 28 Aug 2003 19:54:02 -0000
    @@ -87,7 +87,8 @@ void AP_UnixPrefs::overlayEnvironmentPre
             // (most likely, all of LC_* are the same)
             
             const char * szNewLang = "en-US"; // default to US English
    -#if defined (LC_MESSAGES)
    +#if defined (LC_MESSAGES) && defined (UNDEF) // raphael
    +// #if defined (LC_MESSAGES)
             char * lc_ctype = UT_strdup(setlocale(LC_MESSAGES, NULL));
     #else
             char * lc_ctype = getenv("LANG");
    @@ -103,7 +104,7 @@ void AP_UnixPrefs::overlayEnvironmentPre
             // we'll try this quick conversion
             if (lc_ctype != NULL && strlen(lc_ctype) >= 5)
             {
    - lc_ctype[2] = '-';
    + // lc_ctype[2] = '-'; // commented out Raphael
     
                     char* modifier = strrchr(lc_ctype,'@');
                     /*

    In other words, AbiWord whould never look at LC_MESSAGES, and it should
    never place '-' in lc_ctype[2]. I have used this patch for months; I
    need it for Yiddish, which has LANG set to "yi", not "yi-US" or any
    other country code.



    This archive was generated by hypermail 2.1.4 : Thu Aug 28 2003 - 15:56:10 EDT