r354 - x86/branches/utf8/packages/coreutils

alexander at linuxfromscratch.org alexander at linuxfromscratch.org
Sun Jul 17 02:23:07 PDT 2005


Author: alexander
Date: 2005-07-17 03:23:07 -0600 (Sun, 17 Jul 2005)
New Revision: 354

Added:
   x86/branches/utf8/packages/coreutils/coreutils-5.2.1-iutf8-1.patch
Modified:
   x86/branches/utf8/packages/coreutils/Makefile
Log:
Added coreutils patch that sets UTF-8 mode for the terminal.


Modified: x86/branches/utf8/packages/coreutils/Makefile
===================================================================
--- x86/branches/utf8/packages/coreutils/Makefile	2005-07-17 07:53:48 UTC (rev 353)
+++ x86/branches/utf8/packages/coreutils/Makefile	2005-07-17 09:23:07 UTC (rev 354)
@@ -7,6 +7,7 @@
 FILE= $(DIR).tar.bz2
 PATCH1= $(DIR)-uname-2.patch
 PATCH2= $(DIR)-suppress_uptime_kill_su-1.patch
+PATCH3= $(DIR)-iutf8-1.patch
 
 # Descriptions:
 # -i18n: fixes incorrect behaviour in multibyte locales, e.g. this
@@ -104,6 +105,7 @@
 	 mv $(PATCH2) $(SRC) ; fi
 	@if [ ! -f /bin/ls ] ; then unpack $(SRC)/$(FILE) && cd $(DIR) && \
 	 patch -Np1 -i $(SRC)/$(PATCH1) && patch -Np1 -i $(SRC)/$(PATCH2) && \
+	 patch -Np1 -i ../$(PATCH3) && \
 	 for PATCH in $(RHPATCHES) ; do \
 	  patch -Np1 -i $(REDHAT)/coreutils/$$PATCH ; done && \
 	 sed -i 's,\(#define IDLESTR_LEN\) 6,\1 20,' src/who.c && \

Added: x86/branches/utf8/packages/coreutils/coreutils-5.2.1-iutf8-1.patch
===================================================================
--- x86/branches/utf8/packages/coreutils/coreutils-5.2.1-iutf8-1.patch	2005-07-17 07:53:48 UTC (rev 353)
+++ x86/branches/utf8/packages/coreutils/coreutils-5.2.1-iutf8-1.patch	2005-07-17 09:23:07 UTC (rev 354)
@@ -0,0 +1,39 @@
+Submitted by: Alexander E. Patrakov
+Date: 2005-07-17
+Initial Package Version: 5.2.1
+Upstream Status: Backport from coreutils-5.3.0
+Origin: Upstream: http://lists.gnu.org/archive/html/bug-coreutils/2004-04/msg00021.html
+Description: Allows to change UTF-8 input terminal flag.
+
+--- coreutils/src/stty.c  22 Jan 2004 20:58:59 -0000      1.123
++++ coreutils/src/stty.c  2 Apr 2004 12:41:43 -0000
+@@ -232,6 +232,9 @@ static struct mode_info mode_info[] =
+ #ifdef IMAXBEL
+   {"imaxbel", input, SANE_SET | REV, IMAXBEL, 0},
+ #endif
++#ifdef IUTF8
++  {"iutf8", input, SANE_UNSET | REV, IUTF8, 0},
++#endif
+ 
+   {"opost", output, SANE_SET | REV, OPOST, 0},
+ #ifdef OLCUC
+@@ -581,6 +584,9 @@ Input settings:\n\
+    [-]istrip     clear high (8th) bit of input characters\n\
+ "), stdout);
+       fputs (_("\
++ * [-]iutf8      assume UTF-8 encoding\n\
++"), stdout);
++      fputs (_("\
+  * [-]iuclc      translate uppercase characters to lowercase\n\
+  * [-]ixany      let any character restart output, not only start character\n\
+    [-]ixoff      enable sending of start/stop characters\n\
+@@ -682,7 +688,7 @@ Combination settings:\n\
+    -raw          same as cooked\n\
+ "), stdout);
+       fputs (_("\
+-   sane          same as cread -ignbrk brkint -inlcr -igncr icrnl\n\
++   sane          same as cread -ignbrk brkint -inlcr -igncr icrnl -iutf8\n\
+                  -ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr\n\
+                  -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0\n\
+                  isig icanon iexten echo echoe echok -echonl -noflsh\n\
+




More information about the livecd mailing list