Package: brltty-udeb
Version: 3.10~r3654-1
Severity: normal

brltty currently doesn't detect that the character set in use during
debian-installer is UTF-8.  The attached patch fixes the detection, and
sets the CTYPE locale to C.UTF-8 so that it can detect it.  I will push
the fix upstream.

Samuel

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.1
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel
$ du temp.iso 
2,0T    temp.iso
$ ls temp.iso -l
-r-xr-xr-x    1 samy     thibault      16E 2003-03-22 14:44 temp.iso*
 -+- je vous dirai pas la marque de mon disque dur, na :p -+- 
--- brltty-3.10~r3654/debian/brltty-udeb.sh.orig        2008-04-12 
00:05:30.000000000 +0100
+++ brltty-3.10~r3654/debian/brltty-udeb.sh     2008-04-12 00:21:39.000000000 
+0100
@@ -1,5 +1,5 @@
 #!/bin/sh
 pid=/var/run/brltty
 [ -r $pid ] && kill -0 `cat $pid` && exit 0
-exec /sbin/brltty -P $pid "$@"
+LC_CTYPE=C.UTF-8 exec /sbin/brltty -P $pid "$@"
 
--- brltty-3.10~r3654/Programs/charset.c.orig   2008-04-12 00:23:14.000000000 
+0100
+++ brltty-3.10~r3654/Programs/charset.c        2008-04-12 00:23:16.000000000 
+0100
@@ -381,7 +381,7 @@
 #else /* use setlocale() */
   const char *locale = setlocale(LC_ALL, "");
 
-  if (locale && (MB_CUR_MAX == 1) &&
+  if (locale &&
       (strcmp(locale, "C") != 0) &&
       (strcmp(locale, "POSIX") != 0)) {
     /* some 8-bit locale is set, assume its charset is correct */

Reply via email to