ports/114598: [patch] misc/mc - UTF-8 support
Cristian KLEIN
cristi at net.utcluj.ro
Sun Jul 15 10:20:03 UTC 2007
>Number: 114598
>Category: ports
>Synopsis: [patch] misc/mc - UTF-8 support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 15 10:20:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Cristian KLEIN
>Release: 7.0-CURRENT
>Organization:
Technical University of Cluj-Napoca
>Environment:
FreeBSD hades.local 7.0-CURRENT FreeBSD 7.0-CURRENT #6: Wed Jul 11 17:31:33 EEST 2007 root at hades.local:/usr/obj/usr/src/sys/GENERIC i386
>Description:
misc/mc does not have proper UTF-8 support. More precisely,
* mc is unable to display UTF-8 files
* mcedit is unable to edit UTF-8 files
* some l10n artifacts appear in menu bar etc.
>How-To-Repeat:
[I hope GNATS is UTF-8 compliant.]
Enter a shell using an UTF-8 capable terminal emulator. For example, if you use gnome-terminal, make sure Terminal->Encoding is set to UTF-8. Then in csh type:
setenv LANG ro_RO.UTF-8
echo "ăâîşţ" > ăţ
ls -l
mc
mcedit ăţ
Expected behaviour:
* mc should show ăţ in directory listing.
* mcedit should show ăâîşţ
Actual behaviour:
* mc shows ??
* mcedit shows something unreadable
>Fix:
The following patch is adapted from the Gentoo Portage tree. Apply it like this:
cd /usr/ports/misc/mc
fetch http://users.utcluj.ro/~cristiklein/patches/mc-utf8.patch
patch -p0 -E < mc-utf8.patch
NOTE: This patch adds as dependency devel/libslang2. It can just as well add devel/libslang with proper UTF-8 support. See http://www.freebsd.org/cgi/query-pr.cgi?pr=114569
BUGS: Using devel/libslang2 will disable line drawing capability in cons25. Not a big issue since the user may choose not to include UTF-8 support, if line drawing in cons25 is really desired.
Patch attached with submission follows:
The patch for this PR can be found at http://users.utcluj.ro/~cristiklein/patches/mc-utf8.patch
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list