Your patch below works perfectly well. Again, I have implemented it with
and without my custom .rcrc and everything will work just as expected.

Thank you very much. I've learned a lot with this.

Kindest regards,

Ricardo Peliquero


> 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