File: fix-incorrect-keystroke-interpretation.patch

package info (click to toggle)
fgetty 0.7-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: ansic: 2,170; makefile: 226
file content (29 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Dmitry Bogatov <KAction@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");