Package: hexedit
Version: 1.2.12-3
Severity: wishlist
Tags: patch l10n

*** Please type your report below this line ***
I have my system configured to use a UTF-8 locale, according to the LANG
environment variable:
LANG=en_CA.UTF-8

I have a filename which consists of valid non-ascii characters encoded
in UTF-8. Specifically, the filename consists of the following bytes: E4
B8 89 E5 B9 B4. The filename shows up correctly as two Chinese
characters when I type ls. When I open the file in hexedit, the filename
in the line at the bottom of the screen is mangled. Specifically, it
looks like this : ä¸~I年 (hopefully that shows up properly, if not, it's
an a with umlaut, comma, tilde, capital I, then the correct second
character). It would be nice to use the wide character version of
ncurses in order to correct this problem. The following patch solves the
problem for me:
diff -r hexedit-1.2.12.orig/debian/control hexedit-1.2.12/debian/control
6c6
< Build-Depends: debhelper (>= 5), libncurses5-dev, quilt
---
> Build-Depends: debhelper (>= 5), libncursesw5-dev, quilt
diff -r hexedit-1.2.12.orig/hexedit.c hexedit-1.2.12/hexedit.c
16a17
> #include "locale.h"
56a58
>   setlocale(LC_ALL, "");
diff -r hexedit-1.2.12.orig/hexedit.h hexedit-1.2.12/hexedit.h
16c16
< #include <curses.h>
---
> #include <ncursesw/curses.h>



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

Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hexedit depends on:
ii  libc6                     2.7-13         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080830-1 shared libraries for terminal hand

hexedit recommends no packages.

hexedit suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to