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

Bug#179929: insufficient regexp in uxterm wrapper



Package: xterm
Version: 4.2.1-5, 4.2.99.4-2
Severity: normal
Tags: patch

Hello,

uxterm script contains a sed expression to create a proper LC_CTYPE
setting if your locale was not *.UTF-8 before. Unfortunately, it does
not match the new locales names used by Debian (fr_FR@euro). The
attached patch will fix it.

Gruss/Regards,
Eduard.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux zombie 2.4.21-pre4 #7 Die Feb 4 09:13:49 CET 2003 i686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8

Versions of packages xterm depends on:
ii  debconf                   1.2.22         Debian configuration management sy
hi  libc6                     2.3.1-10       GNU C Library: Shared libraries an
ii  libexpat1                 1.95.6-2       XML parsing C library - runtime li
ii  libfontconfig1            2.1-14         generic font configuration library
ii  libfreetype6              2.1.3-9        FreeType 2 font engine, shared lib
ii  libncurses5               5.3.20021109-2 Shared libraries for terminal hand
ii  libxaw7                   4.2.99.4-2     X Athena widget set library
ii  libxft2                   2.1-7          advanced font drawing library for 
ii  xlibs                     4.2.99.4-2     X Window System client libraries

-- debconf information:
  xterm/clobber_xresource_file: true
  xterm/xterm_needs_devpts: 


-- 
Kommt Zeit, kommt Bart.
--- uxterm.orig	2003-02-05 10:40:04.000000000 +0100
+++ uxterm	2003-02-05 18:43:52.000000000 +0100
@@ -30,7 +30,7 @@
 # user's shell does not reset unknown locale specifiers, but not all shells do.
 if test $found != yes ; then
 	if test -n "$value" ; then
-		eval ${name}=`echo ${value} |sed -e 's/\..*//'`.UTF-8
+		eval ${name}=`echo ${value} |sed -e 's/\(\.\|\@\).*//'`.UTF-8
 		eval export ${name}
 	else
 		LC_CTYPE=en_US.UTF-8

Reply to: