From: Marc Maurer (j.m.maurer@student.utwente.nl)
Date: Thu Aug 28 2003 - 16:08:55 EDT
Committed manually, since the patch formating was fscked (gzipping
patches will solve that). Thanks Raphael.
Marc
Op do 28-08-2003, om 21:44 schreef Raphael Finkel:
> 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.
-- Marc Maurer <j.m.maurer@student.utwente.nl>
This archive was generated by hypermail 2.1.4 : Thu Aug 28 2003 - 16:16:08 EDT