Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.3
aaa_base
git-22-ed9debfbf942796f76f6ded8f01002b56b356a74...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-22-ed9debfbf942796f76f6ded8f01002b56b356a74.patch of Package aaa_base
commit ed9debfbf942796f76f6ded8f01002b56b356a74 Author: Werner Fink <werner@suse.de> Date: Wed Jun 1 08:43:13 2016 +0200 lang.sh, lang.csh: if GDM_LANG equals system LANG then use system defaults Signed-off-by: Werner Fink <werner@suse.de> diff --git a/files/etc/profile.d/lang.csh b/files/etc/profile.d/lang.csh index 86e8472..21b66ba 100644 --- a/files/etc/profile.d/lang.csh +++ b/files/etc/profile.d/lang.csh @@ -16,7 +16,15 @@ if ( ${?SSH_SENDS_LOCALE} ) goto end # Already done by the GDM # if ( ${?GDM_LANG} ) then - set LANG=$GDM_LANG + eval `sed -rn -e 's/^(RC_LANG)=/set _\1=/p' < /etc/sysconfig/language` + if ( ${?_RC_LANG} ) then + if ( "$_RC_LANG" == "$GDM_LANG" ) then + unsetenv GDM_LANG + else + setenv LANG=$GDM_LANG + endif + unset _RC_LANG + endif endif unset _save diff --git a/files/etc/profile.d/lang.sh b/files/etc/profile.d/lang.sh index ae7f160..d7d99fe 100644 --- a/files/etc/profile.d/lang.sh +++ b/files/etc/profile.d/lang.sh @@ -15,7 +15,15 @@ test -z "$SSH_SENDS_LOCALE" || return # # Already done by the GDM # -test -n "$GDM_LANG" && LANG=$GDM_LANG +if test -n "$GDM_LANG" ; then + eval $(sed -rn -e 's/^(RC_LANG)=/_\1=/p' < /etc/sysconfig/language) + if test "$_RC_LANG" = "$GDM_LANG" ; then + unset GDM_LANG + else + LANG=$GDM_LANG + fi + unset _RC_LANG +fi unset _save test -n "$LANG" && _save="$LANG"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor