Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311471 - games-strategy/glest-3.2.2 installs files with names in encoding other that utf8
Summary: games-strategy/glest-3.2.2 installs files with names in encoding other that utf8
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 17:30 UTC by Mariusz Pękala
Modified: 2012-08-19 21:25 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Pękala 2010-03-26 17:30:22 UTC
The package installs fine, but warns:

* This package installs one or more file names containing characters that
* do not match your current locale settings. The current setting for
* filesystem encoding is 'UTF-8'.
usr/share/games/glest/data/lang/espa�lng
usr/share/games/glest/scenarios/storming/storming_espa�lng
usr/share/games/glest/tutorials/advanced_tutorial/advanced_tutorial_espa�lng
usr/share/games/glest/tutorials/basic_tutorial/basic_tutorial_espa�lng

There existed a barely related bug 97026.

Reproducible: Always

Steps to Reproduce:
1. have a filesystem locale with UTF8 encoding
2. emerge glest


Actual Results:  
Files with invalid names are installed (for example ls *.lng will not find these files)

Expected Results:  
The file names should be corrected - preferrably by upstream, eventually by ebuild.
I have tested by manually renaming (a symlink was enough) the file in ".../data/lang/" to more correct form (any form with visible dot seems to be accepted) that the originally installed file is not visible in the game (languages selection in the options) an the "fixed" file is visible and seems to work correctly. (I do not know the Spanish language, so I can just say it does not crash the game :)

Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r10-i686-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 26 Mar 2010 13:00:02 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -mmmx -msse -msse2 -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe -mmmx -msse -msse2 -msse3"
DISTDIR="/usr/_portage-distfiles"
EMERGE_DEFAULT_OPTS=" --with-bdeps=y "
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://192.168.1.77/ http://distfiles.gentoo.org/ http://gentoo.osuosl.org/ http://adelie.polymtl.ca/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j2"
PKGDIR="/usr/_portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --exclude-from=/etc/portage/rsync_excludes "
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt css cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 jpeg kde ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session smp spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd thunar tiff timidity truetype unicode usb v4l v4l2 vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zeroconf 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 mmap_emul 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev v4l" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Marco Salm 2010-03-31 19:31:19 UTC
I tried to change the files with the help of convmv, but unfortunately, this procedure changes the menu entry "español" to something weird like "espÃ?ol".
Apparently, glest uses the filename as menu entry and can not handle utf8 filenames.

That's why I changed the ebuild for my personal needs. I use
the following command in src_prepare:
find "${WORKDIR}" -type f -name "*espa?ol*"\
    -exec sh -c 'mv -f {} $(echo {} | tr "\361" "no")' \; \
    || die "find failed"
But I doubt that this is a good idea. :)
Comment 2 Julian Ospald 2012-08-19 21:25:03 UTC
glest is masked for removal, cause games-strategy/megaglest will supersede it