diff options
author | Tim Williams <[email protected]> | 2011-10-14 13:51:18 +0100 |
---|---|---|
committer | Tim Williams <[email protected]> | 2011-10-14 13:51:18 +0100 |
commit | ec2515f058c60d2478a549f58376db628ba556b9 (patch) | |
tree | aefbde1b807005611b397e01ebc5782c7d27ff91 /mandriva/2010.2/kdebase/kdebase-3.5.7-translation-override.patch | |
parent | bba295da1161579c6fe734680c827e50a3585131 (diff) | |
download | tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.tar.gz tde-packaging-ec2515f058c60d2478a549f58376db628ba556b9.zip |
Initial commit of the Mandriva patches and spec files.
This includes the main dependencies and core packages, but very little else.
Diffstat (limited to 'mandriva/2010.2/kdebase/kdebase-3.5.7-translation-override.patch')
-rw-r--r-- | mandriva/2010.2/kdebase/kdebase-3.5.7-translation-override.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mandriva/2010.2/kdebase/kdebase-3.5.7-translation-override.patch b/mandriva/2010.2/kdebase/kdebase-3.5.7-translation-override.patch new file mode 100644 index 000000000..06848904d --- /dev/null +++ b/mandriva/2010.2/kdebase/kdebase-3.5.7-translation-override.patch @@ -0,0 +1,26 @@ +--- kdebase-3.5.7/kdm/kfrontend/kdm_greet.c.fixlang 2007-10-02 16:56:25.000000000 -0300 ++++ kdebase-3.5.7/kdm/kfrontend/kdm_greet.c 2007-10-02 15:07:58.000000000 -0300 +@@ -779,7 +779,10 @@ main( int argc ATTR_UNUSED, char **argv + LogPanic( "Cannot save $HOME\n" ); + atexit( cleanup ); + +- setenv( "LC_ALL", _language, 1 ); ++ if ( getenv( "LANG" ) == NULL ) ++ setenv( "LC_ALL", _language, 1 ); ++ else ++ setenv( "LC_ALL", getenv( "LANG" ), 1 ); + + kg_main( argv[0] ); + +--- kdebase-3.5.7/kdm/backend/session.c.fixlang 2007-10-02 16:56:58.000000000 -0300 ++++ kdebase-3.5.7/kdm/backend/session.c 2007-10-02 16:18:21.000000000 -0300 +@@ -802,6 +802,9 @@ systemEnv( const char *user ) + env = baseEnv( user ); + if (td->authFile) + env = setEnv( env, "XAUTHORITY", td->authFile ); ++ char *lang = getenv("LANG"); ++ if (lang != NULL) ++ env = setEnv( env, "LANG", lang ); + env = setEnv( env, "PATH", td->systemPath ); + env = setEnv( env, "SHELL", td->systemShell ); + return env; |