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

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



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 redhat com>
---
 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


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