[PATCH 3/3] Install a en_US.UTF-8 locale in the first stage image.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We need a UTF-8 locale so that isprint() and wc* do the right thing.

Signed-off-by: Bill Nottingham <notting@xxxxxxxxxx>
---
 scripts/mk-images |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index e7b30ce..bd3ea5d 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -617,6 +617,8 @@ makeinitrd() {
     install -m 644 $IMGPATH/etc/group $MBD_DIR/etc/group
     install -m 644 $IMGPATH/etc/nsswitch.conf $MBD_DIR/etc/nsswitch.conf
     install -m 644 $IMGPATH/etc/hosts $MBD_DIR/etc/hosts
+    mkdir -p $MBD_DIR/usr/lib/locale
+    localedef -c -i en_US -f UTF-8 --prefix $MBD_DIR en_US
 
     instbin $IMGPATH /usr/bin/mount $MBD_DIR /sbin/mount
     for mountcmd in $IMGPATH/usr/sbin/mount.* ; do
-- 
1.6.2.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux