Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63545 - mplayer built with non english console display
Summary: mplayer built with non english console display
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-10 06:18 UTC by Aaron Peterson
Modified: 2004-11-08 22:43 UTC (History)
0 users

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


Attachments
de screen shot of horror ( broken_mplayer.png,46.15 KB, image/png)
2004-09-10 06:22 UTC, Aaron Peterson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Peterson 2004-09-10 06:18:08 UTC
My system, well, all systems, should support tons of languages... so, I enabled language support, and mplayer is the only application that I know of that is acting badly.

(see screen shot and actual results)

this has been annoying me for more than a month now...
media-video/mplayer-1.0_pre5-r3
is the current one.. but I think it started happening in the pre series, but I also changed my linguas use flags at about the same time.

Reproducible: Always
Steps to Reproduce:
1.emerge a few i18n programs
2.have unicode and cjk useflags
3.put a few linguas useflags in there to boot
4.poof!???

Actual Results:  
aaron@escargot ~ $ mplayer
MPlayer 1.0pre5-3.4.1 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1659 MHz (Family: 6, Stepp
ing: 0)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 1 SSE2: 0
Comment 1 Aaron Peterson 2004-09-10 06:18:08 UTC
My system, well, all systems, should support tons of languages... so, I enabled language support, and mplayer is the only application that I know of that is acting badly.

(see screen shot and actual results)

this has been annoying me for more than a month now...
media-video/mplayer-1.0_pre5-r3
is the current one.. but I think it started happening in the pre series, but I also changed my linguas use flags at about the same time.

Reproducible: Always
Steps to Reproduce:
1.emerge a few i18n programs
2.have unicode and cjk useflags
3.put a few linguas useflags in there to boot
4.poof!???

Actual Results:  
aaron@escargot ~ $ mplayer
MPlayer 1.0pre5-3.4.1 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1659 MHz (Family: 6, Stepp
ing: 0)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 1 SSE2: 0
¬° x86 CPU ½sĶ¨Ã¦³ extensions:
 MMX 3DNow SSE

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/aaron/.mplayer/config
Reading /home/aaron/.mplayer/codecs.conf: Can't open '/home/aaron/.mplayer/codec
s.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 73 audio & 180 video codecs
¥Îªk:   mplayer [options] [url|path/]filename

°ò¥»¿ï¶µ: (§¹¾ãªº¿ï¶µ¦Cªí½Ð¨£ man page)
 -vo <drv[:dev]>  ¿ï¾Üµø°T¿é¥XÅX°Êµ{¦¡¤Î¸Ë¸m (¥Î '-vo help' ¬d¬Ý¦Cªí)
 -ao <drv[:dev]>  ¿ï¾Ü­µ®Ä¿é¥XÅX°Êµ{¦¡¤Î¸Ë¸m (¥Î '-ao help' ¬d¬Ý¦Cªí)
 vcd://<trackno>   ±q¸Ë¸m¦Ó¨Ã«D¤@¯ëÀÉ®×¼½©ñ VCD (Video CD) track
 dvd://<titleno>   ±q¸Ë¸m¦Ó¨Ã«D¤@¯ëÀÉ®×¼½©ñ DVD title
 -alang/-slang    ¿ï¾Ü DVD ­µ®Ä/¦r¹õªº»y¨¥ (¨Ï¥Î¨â¦ìªº°ê®a¥N¸¹)
 -ss <timepos>    ·j¯Á¦Ü«ü©w (¬í©Î hh:mm:ss) ªº¦ì¸m
 -nosound         ¤£¼½©ñÁn­µ
 -fs              ¥þ¿Ã¹õ¼½©ñ (©Î -vm, -zoom¡A¸Ô²Ó¤º®e½Ð¨£ man page)
 -x <x> -y <y>    ³]©wÅã¥Ü¸ÑªR«× (»P -vm ©Î -zoom ¦P®É¨Ï¥Î)
 -sub <file>      «ü©w¨Ï¥Îªº¦r¹õÀÉ (½Ð°Ñ¨£ -subfps, -subdelay)
 -playlist <file> «ü©w¼½©ñ¦CÀÉ
 -vid x -aid y    ¿ï¾Ü¼½©ñªºµø°T (x) ¤Î­µ®Ä (y) ¦ê¬y
 -fps x -srate y  §ïÅܵø°T (x fps) ¤Î ­µ®Ä (y Hz) ²v
 -pp <quality>    ¨Ï¥Î«á´Á³B²zÂoÃè (¸Ô²Ó¤º®e½Ð¨£ man page)
 -framedrop       ¨Ï¥Î frame dropping (¥Î©óºC¾÷¾¹)

°ò¥»±±¨îÁä: (§¹¾ãªº¦Cªí½Ð¨£ man page, ¦P®É½Ð¬d¾ input.conf)
 <-  or  ->       ¦V«e/«á·j¯Á 10 ¬í
 up or down       ¦V«e/«á·j¯Á 1 ¤ÀÄÁ
 pgup or pgdown   ¦V«e/«á·j¯Á 10 ¤ÀÄÁ
 < or >           ¸õ¦Ü¼½©ñ¦C¤¤ªº«e/«á¤@­º
 p or SPACE       ¼È°±¼½©ñ («ö¥ô·NÁäÄ~Äò)
 q or ESC         °±¤î¼½©ñ¨ÃÂ÷¶}
 + or -           ½Õ¾ã­µ®Ä©µ¿ð +/- 0.1 ¬í
 o                ´`Àô OSD ¼Ò¦¡:  µLÅã¥Ü / ·j´M±ì / ·j´M±ì+­p®É¾¹
 * or /           ´£°ª©Î­°§C PCM ­µ¶q
 z or x           ½Õ¾ã¦r¹õ©µ¿ð +/- 0.1 ¬í
 r or t           ¤W/¤U½Õ¾ã¦r¹õ¦ì¸m, ½Ð¨£ -vf expand

 * * * ¸Ô²Ó¤º®e, ¶i¤@¨B(¶i¶¥)¿ï¶µ¤Î±±¨îÁä½Ð¨£ MAN PAGE * * *


Expected Results:  
build in english unless told to build in a different way!

Portage 2.0.50-r11 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aac aalib accessibility acl acpi acpi4linux alsa amd
apache2 apm arts artswrappersuid audiofile avi berkdb bidi bitmap-fonts bonobo
canna cap caps cdr cjk cjkcrypt codecs crypt cscope cups dba dga directfb
divx4linux djbfft doc dts dv dvb dvd dvdr dvdread edl encode esd evms2 faacfaad
fam fbcon ffmpeg flac flash flatfile fmod foomaticdb freetype freewnn fs gd gdbm
ggi gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile hardenedphp
icq ieee1394 imagemagick imap imlib intl jabber jack java javascript jbig jce
joystick jp2 jpeg kde kerberos krb4 ldap libcaca libcss libdvdread libg++ libwww
linguas_en_US linguas_es linguas_ru linguas_zh_CN linguas_zh_TW live ltsp lzo
lzw lzw-tiff m17n-lib mad maildir md5sum mdb mikmod ming mmx mng mono motif
mozdomi mozilla mozplaintext mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn
msql mssql mule music mysql mysqli nas ncurses netnetwork nls nptl ntlm nvidia
offensive oggvorbis ooo-kde opengl oss pam pdflib perl pic png posix postgres
python qt quicktime readline rtc samba sasl scanner sdl slang smime spell sse
ssl svg svga tcltk tcpd tetex tga theora threads tiff timidity transcode
truetype type1 uim unicode usb v4l v4l2 vhosts vim-with-x virus-scan vnc wifi
wmf x86 xine xinerama xml2 xmms xpm xprint xv xvid xvmc yahoo zeo zlib"
Comment 2 Aaron Peterson 2004-09-10 06:22:05 UTC
Created attachment 39312 [details]
de screen shot of horror

note, mplayer plays movies ok... it's help, and other notes are unusable though
Comment 3 Chris White (RETIRED) gentoo-dev 2004-09-10 14:14:30 UTC
uh, you did know about the nls (National Language Services) USE flags 
right?
Comment 4 Aaron Peterson 2004-09-10 16:22:49 UTC
>uh, you did know about the nls (National Language Services) USE flags 
right?

no... there are so many useflags, and I've already spent many hours going through ufed and searching the web.

so, I'm looking it up now..
and I have it!, so ... why doesn't it handle the multibyte characters better?

I've had that useflag for a while now...
and it appears that mplayer is the only one that does something wacky with it.. (could be upstream?)

anyway, I've spent many hours searching/dealing with this, and I have no idea what to do next. I need all of my apps to support as many languages as they can... I suppose I could filter out the useflags for mplayer temporarily

this behavior was completely unexpected
Comment 5 Chris White (RETIRED) gentoo-dev 2004-09-11 06:44:56 UTC
Ok, had to make sure (btw I think NLS is actually Nationale Locale Services or
something other than what I said.. but anyways).  So then, I'll need:

a) USE flags that you used to emerge MPlayer (with -pv to give that output)
b) the ./configure flags that portage is giving MPlayer
   (you can get this by emerging it, waiting till the ./configure script is ran
   and canceling it.  It should show the configure options that it's passing
   right before the configure script is ran)
c) your LINGUAS variables

This'll help in evaluating what's going on.  If I need to, I'll contact
upstream regarding the issue.
Comment 6 Aaron Peterson 2004-09-11 22:06:21 UTC
Thanks for helping!
The stuff you requested is down the page just a bit.

******
When installing scim I might have been asked to change a setting...
here is my page on installing a kde IME http://escargot.icehouse.net/mediawiki/index.php/Kde_ime
(warning, it contains lots of cursing)

i did not change any settings out of my regular users profile.
so, it should not have affected the emerge...
===
nuggests from my user's bashrc that I edited:
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
alias lcl="ls --color=always --format=vertical | less"
export QT_IM_MODULE=scim

*******
set
revealed nothing interesting.



*****************

escargot libstdc++-v3 # emerge mplayer -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-video/mplayer-1.0_pre5-r3  -3dfx +3dnow +3dnowex +X +aalib +alsa -(altivec) +arts +bidi -cdparanoia -debug -debug +directfb +divx4linux +doc +dvb +dvd +dvdread +edl +encode +esd +fbcon +ggi +gif +gtk -i8x0 -ipv6 +joystick +jpeg +libcaca -lirc +live +lzo+mad -matroska -matrox +mmx -mmx2 +mpeg -mythtv +nas +network +nls +nvidia +oggvorbis +opengl +oss +png +rtc +samba +sdl +sse -sse2 +svga+tga +theora +truetype +v4l +v4l2 +xinerama +xmms +xv +xvid +xvmc  9 kB

*****************
here's #3, my linguas variables
*****************
escargot libstdc++-v3 # tail /etc/make.conf
#
# RSYNC_EXCLUDEFROM is a file that portage will pass to rsync when it updates
#     the portage tree. Specific chucks of the tree may be excluded from
#     consideration. This may cause dependency failures if you are not careful.
#     The file format is one pattern per line, blanks and ';' or '#' lines are
#     comments. See 'man rsync' for more details on the exclude-from format.
#RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes

LINGUAS="zh_TW zh_CN ru es en_US"
ALSA_CARDS="intel8x0"
escargot libstdc++-v3 #  


*********
and last, but not last on your list:
configure options
(believe it or not, I am trying to remember these steps you've given me, so i can get one step further on my own)
... I think I'll give what you asked for, then  something you didn't want, that might be usefull.. 

results of .configure
********


Config files successfully generated by ./configure !

  Install prefix: /usr
  Data directory: /usr/share/mplayer
  Config direct.: /usr/share/mplayer

  Byte order: Little Endian
  Optimizing for: athlon-4 mmx mmx2 3dnow 3dnowex sse mtrr

  Languages:
    Messages/GUI: zh_TW
    Manual pages: es en

  Enabled optional drivers:
    Input: ftp network tv-v4l2 tv-v4l edl tv live.com matroska(internal) dvdread vcd dvb smb
    Codecs: qtx divx5linux xvid libdv libavcodec real xanim dshow/dmo win32 faad2(external) libmpeg2 liba52 mp3lib libtheora libvorbis libmad liblzo gif
    Audio output: alsa esd arts oss nas sdl mpegpes(dvb)
    Video output: xvidix cvidix sdl vesa gif89a jpeg png mpegpes(dvb) fbdev svga caca aa ggi opengl dga xvmc xv x11 xover dfbmga directfbtga
  Disabled optional drivers:
    Input: tv-bsdbt848 cdda mpdvdkit
    Codecs: divx4linux
    Audio output: sgi sun jack dxr2 win32 macosx
    Video output: winvidix bl zr zr2 dxr3 dxr2 directx xmga mga tdfx_vid tdfxfb 3dfx quartz

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files **

***********
imediatly after unpacking:
* Applying mplayer-0.90-coreutils-fixup.patch...                                                                                   [ ok ]
 * Applying mplayer-1.0_pre4-help_mp-ro.h.patch...                                                                                  [ ok ]
 * Applying mplayer-1.0_pre4-alsa-gcc34.patch...                                                                                    [ ok ]
 * Applying mplayer-1.0_pre5-yuv2rbg_kludge.patch...                                                                                [ ok ]
 * Applying cachefill.patch...                                                                                                      [ ok ]
 * Applying mplayer-1.0_pre5-r1-conf_locale.patch...                                                                                [ ok ]
live
 * Applying mplayer-1.0_pre5-live.patch...                                                                                          [ ok ]
alsa
 * Applying mplayer-1.0_pre5-alsa-gui.patch.tar.bz2...                                                                              [ ok ]
 * Applying mplayer-1.0_pre5-mips64.patch...                                                                                        [ ok ]
svga

 * Enabling vidix non-root mode.
 * (You need a proper svgalib_helper.o module for your kernel
 *  to actually use this)

>>> Source unpacked.
dvd
png
xvid
fbcon
xvmc
nvidia
xvmc
xvmc
nvidia
xvmc
nvidia
 * Setting REALLIBDIR to /opt/RealPlayer9/Real/Codecs...

*****
Comment 7 Chris White (RETIRED) gentoo-dev 2004-09-12 22:48:15 UTC
Ok, I checked the configure file, and apparently it accepts the first LINGUAS
variable that it can find a help_mp file for.  In this case, your first
LINGUAS variable zh_TW was detected by MPlayer as a LINGUAS with a relavant
help_mp file.  The file: help_mp-zh_TW.h does exist.  If it's the proper
encoding is the question.  Make sure you have the appropriate zh_TW locale
when running this program.  If you want to have something set besides the
locale you currently have (zh_TW), you're going to need to set LINGUAS to
whatever the locale is you want, and make sure that your locale has an
appropriate help_mp file (You'll find them in the help directory of the main
MPlayer source).  If you setup with `LANG=zh_TW LC_ALL=zh_TW mplayer`, and the
problem still exists, then you should probably send a bug to
bugzilla.mplayerhq.hu, as well as sending an email to the mplayer-dev list to
make them aware of the situation.  I hope this helps in addressing your issue.

If you feel something else should be done as an alternative to what I have
posted above, feel free to comment.  I can't promise I'll do it (and if I 
don't, I'll at least prompt an explanation), but I'll try to get it done.

Ok, sleep calls :).
Comment 8 Aaron Peterson 2004-09-13 08:52:56 UTC
Thank you, Sooo much!

I reordered my linguas variables to have en_US first.  that did not fix it.

I then tried en_US en, then the rest,

and that... fixed it..

  Languages:
    Messages/GUI: en
    Manual pages: en es



I hope this doesn't break other applications... I intuitively thought that the last one would be the one that counted..  I don't know why, it's arbitrary, and I hate arbitrary things.

maybe there should be a warning when building mplayer with linguas variables?

I know einfo's are nearly worthless as they scroll by/make emerging something an interactive process, but it wouldn't hurt.. 

a filter of some sort starts to get complicated.. 

The issue is apperantly that there is no way to rank the linguas variables.  Or no mentioning of it in the help for those.. which, I, by the way.. haven't been able to find for some time now.

anyway, Thank you,
If you think we are done with this bug, I'd be content with cantfix or upstream or worksforme ... however, we want to be able to catch other people who have this same bug, so leaving it open is probably desireable untill it's fixed... wherever it may be.
Comment 9 Peter Ruskin 2004-09-28 15:58:53 UTC
Same here.  I have to remember to reset LINGUAS to "en_GB" before emerging mplayer (normally "en_GB fr de" - OK for KDE & openoffice).  It's a real nuisance when I forget.
Comment 10 Chris White (RETIRED) gentoo-dev 2004-11-08 22:43:52 UTC
Marking as closed.