[PATCH 1/3] Set locale to en_US.UTF-8 when initializing the console.

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

 



If we're setting the console to UTF-8, we should set a UTF-8 locale so that
apps that test LC_CHARSET do the right thing. (e.g., slang)

Signed-off-by: Bill Nottingham <notting@xxxxxxxxxx>
---
 loader/loader.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 6d69a15..1de7019 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -308,6 +308,7 @@ char * getProductPath(void) {
 
 void initializeConsole() {
     /* enable UTF-8 console */
+    setenv("LANG","en_US.UTF-8",1);
     printf("\033%%G");
     fflush(stdout);
 
-- 
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