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.
Fix: The following patch is adapted from the Gentoo Portage tree. Apply it like this:
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:
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 "ăâîşţ" > ăţ
* mc should show ăţ in directory listing.
* mcedit should show ăâîşţ
* mc shows ??
* mcedit shows something unreadable
Over to maintainer
I made a typo in the section telling the user how to apply the patch:
patch -p1 -E < mc-utf8.patch
I also changed the patch, so the port revision would be updated to 6.
Meanwhile, other 2 servers are happily using UTF-8 compliant mc.
fjoe 2008-04-09 19:31:16 UTC
FreeBSD ports repository
- Add UTF-8 support 
- Add ability to build with glib12 (though it still builds with glib2
if it is installed) 
PR: 114598 
Submitted by: Cristian KLEIN , Alexander Zagrebin 
Revision Changes Path
1.114 +15 -3 ports/misc/mc/Makefile
1.1 +5119 -0 ports/misc/mc/files/mc-4.6.1-utf8-r2.patch (new)
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"