Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213522 - app-misc/mc-4.6.1-r4 broken Russian UTF-8 locale
Summary: app-misc/mc-4.6.1-r4 broken Russian UTF-8 locale
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 213520 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-15 17:39 UTC by Vitaliy Trifonov
Modified: 2009-08-05 11:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
After unpack recode files in UTF-8 encoding (mc-4.6.1-r4.ebuild.patch,654 bytes, patch)
2008-03-15 18:01 UTC, Vitaliy Trifonov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaliy Trifonov 2008-03-15 17:39:20 UTC
If used Russian UTF-8 locale, Midnight Commander view trash in help and hint, because in files doc/ru/xnc.hlp, doc/ru/xnc.hlp mc.1.in lib/mc.hint.ru used KOI8-R encoding.

I offer a patch solving this problem.


--- /usr/portage/app-misc/mc/mc-4.6.1-r4.ebuild	2008-03-01 17:05:34.000000000 +0300
+++ /usr/local/portage/app-misc/mc/mc-4.6.1-r5.ebuild	2008-03-15 15:14:26.000000000 +0300
@@ -60,10 +60,15 @@
 	# Bug #184296
 	epatch "${FILESDIR}"/${P}-invalid-mtime.patch
 
 	if use slang && use unicode; then
 		epatch "${DISTDIR}"/${P}-utf8-r2.patch.bz2
+		for FCONV in  doc/ru/{xnc.hlp,mc.1.in} lib/mc.hint.ru
+		do
+		    mv ${FCONV} ${FCONV}~ && \
+		    iconv -f KOI8-R -t UTF-8 ${FCONV}~ >${FCONV}
+		done
 	fi
 	epatch "${FILESDIR}"/${P}-nonblock.patch
 	epatch "${FILESDIR}"/${P}-bash-all.patch
 
 	# Prevent lazy bindings in cons.saver binary. (bug #135009)

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/   http://cdot.senecac.on.ca/software/gentoo/   http://gentoo.mirrors.tera-byte.com/   http://osmirrors.cerias.purdue.edu/pub/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru"
MAKEOPTS="-j1 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa arts bash-completion berkdb cddb cdparanoia cdr clamav cli cracklib crypt cups curl dbus djvu dri dts dvd dvdr dvdread eds emacs emboss encode fam fbcon ffmpeg fftw flac fortran ftp gdbm geoip gif gnutls gpm graphviz gtk gtk2 gtkhtml hal iconv ipv6 isdnlog jpeg jpeg2k kde lcms lirc lm_sensors lua mad matroska midi mikmod mime mmap mmx mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nvidia ogg openal opengl openmp pam pcre pdf perl png pppd python qt qt3 qt3support readline reflection ruby sdl session sndfile sockets sox spell spl sse ssl svg tcpd tiff truetype unicode upnp usb vorbis x264 x86 xine xinetd xml xorg xpm xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia nv v4l vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vitaliy Trifonov 2008-03-15 18:01:08 UTC
Created attachment 146242 [details, diff]
After unpack recode files in UTF-8 encoding
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-03-15 20:26:10 UTC
*** Bug 213520 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-15 20:50:45 UTC
Get this fixed upstream; recoding stuff on unpack is absolutely no solution for people using other encodings.
Comment 4 Vitaliy Trifonov 2008-03-16 00:03:48 UTC
(In reply to comment #3)
> Get this fixed upstream; recoding stuff on unpack is absolutely no solution for
> people using other encodings.
> 
Do you look in patch contents?
Recoding only Russian files and only if unicode is used.