Skip to content

Commit

Permalink
Merge pull request #850 from yast/use_english_when_posix
Browse files Browse the repository at this point in the history
use LANG=UTF-8 in case of RC_LANG=POSIX
  • Loading branch information
teclator committed Apr 17, 2020
2 parents 74dc996 + a6aa384 commit d09914a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Apr 17 16:10:19 UTC 2020 - Knut Anderssen <kanderssen@suse.com>

- Force the use of en_US.UTF-8 when running firstboot or the
AutoYaST Second Stage with 'POSIX' or 'C as RC_LANG (bsc#1169017)
- 3.3.1

-------------------------------------------------------------------
Fri Mar 15 13:22:58 UTC 2019 - snwint@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-installation
Version: 3.3.0.3
Version: 3.3.1
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
9 changes: 7 additions & 2 deletions startup/common/language.sh
Expand Up @@ -73,8 +73,13 @@ function set_language_cont () {
export RC_LANG=en_US
fi

# get rid of encoding and/or modifier
export LANG=${RC_LANG%%[.@]*}.UTF-8
if [ "$RC_LANG" == "POSIX" ] || [ "$RC_LANG" == "C" ] ; then
log "\tRC_LANG is ${RC_LANG}, using LANG en_US.UTF-8 as default..."
export LANG=en_US.UTF-8
else
# get rid of encoding and/or modifier
export LANG=${RC_LANG%%[.@]*}.UTF-8
fi
}

#----[ start_unicode ]-----#
Expand Down

0 comments on commit d09914a

Please sign in to comment.