Package: ngrep
Version: 1.43-3
Severity: normal
ngrep use locale is*() functions, but can't call setlocale before it
so it use POSIX locale so isprint() and others instead of current locale
settings
please add patch below (or something similar)
----
--- ngrep.c.old 2005-05-03 18:57:18.000000000 +0400
+++ ngrep.c 2005-05-03 18:39:28.000000000 +0400
@@ -84,6 +84,8 @@
#include "regex-0.12/regex.h"
#endif
+#include <locale.h>
+
#include "ngrep.h"
@@ -146,6 +148,7 @@
int main(int argc, char **argv) {
int c;
+ setlocale(LC_ALL,"");
signal(SIGINT, clean_exit);
signal(SIGABRT, clean_exit);
----
This patch is not enough for multibyte locales, but it work well for
singe-bytes locales
like ru.RU.CP1251 or ru_RU.KOI8-R
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=C
Versions of packages ngrep depends on:
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii libpcap0.8 0.8.3-5 System interface for user-level pa
ii libpcre3 4.5-1.1 Perl 5 Compatible Regular Expressi
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]