Date: Sun, 15 Jul 2007 10:16:44 GMT From: Cristian KLEIN <cristi@net.utcluj.ro> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/114598: [patch] misc/mc - UTF-8 support Message-ID: <200707151016.l6FAGh7T014577@www.freebsd.org> Resent-Message-ID: <200707151020.l6FAK3Yi045758@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707151016.l6FAGh7T014577>