[2018-12-31 13:46] Ricardo Peliquero <zh...@lasampa.com.ar>
> >  * setenv("LANG", "C.UTF-8", 1)
> 
> It works as a breeze.
> Able to type 'ñandú' and other stuff with LANG=C.UTF-8.
> I can always put LANG=es_AR.UTF-8 and LANGUAGE=es_AR:es into .rcrc in
> order to fit my local needs, and it still works perfectly well.

Great. Seems we found solution. Let us make it minimal. I believe
of three places, changed in previous patch, only one is truly required.

Please try patch in this mail (at bootom).

> >  * setenv("LC_ALL", "C.UTF-8", 1)
> 
> It works, but LC_ALL variable might not be neccessary here. I'll of
> course respect your choice.

Of course, I agree that LC_ALL is big hammer here, that will overrule
user preferences, which is not apporiate.

> Thank you very much, and happy new year!

Thank you. It is pleasure to work with you.

From 200b7d217ee3ac54b376116e7d64ce0844ecbed9 Mon Sep 17 00:00:00 2001
From: Dmitry Bogatov <kact...@debian.org>
Date: Tue, 1 Jan 2019 22:52:18 +0000
Subject: [PATCH] Fix #833116

---
 login2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/login2.c b/login2.c
index 8aaf6d6..156105b 100644
--- a/login2.c
+++ b/login2.c
@@ -16,6 +16,7 @@
 #include <utmp.h>
 #include <grp.h>
 #include <write12.h>
+#include <locale.h>
 
 #include <sys/stat.h>
 
@@ -61,6 +62,8 @@ main(int argc,char *argv[]) {
   char *shell=getenv("SHELL");
   char *Argv[]={"-sh",0};
   char *login=getenv("USER");
+
+  setenv("LANG", "C.UTF-8", 1);
   if (getuid()==0) {   /* checkpassword honored "nosetuid" */
     char *tmp=getenv("UID");
     char *tty=getenv("TTY");

Reply via email to