[Bug 252203] Re: command-not-found crarshes with LS

2008-08-19 Thread fabtagon
I get the same error on calling the (not installed) mpicc.

$ mpicc
Das Programm mpicc ist folgenden Paketen enthalten: [translation: The program 
mpicc comes with the following packages]
 * lam4-dev
 * libmpich1.0-dev
 * libopenmpi-dev
 * libmpich-mpd1.0-dev
 * libmpich-shmem1.0-dev
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/ubuntu/+source/command-not-found
Please include the following information with the report:
'ascii' codec can't encode character u'\xe4' in position 25: ordinal not in 
range(128)
Traceback (most recent call last):
  File /usr/lib/command-not-found, line 28, in module
CommandNotFound(options.data_dir).advise(args[0], options.ignore_installed)
  File /usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py, 
line 153, in advise
print sys.stderr, _(Try: %s selected package) % sudo apt-get 
install  File /usr/lib/python2.5/gettext.py, line 584, in lgettext
return ldgettext(_current_domain, message)
  File /usr/lib/python2.5/gettext.py, line 556, in ldgettext
return t.lgettext(message)
  File /usr/lib/python2.5/gettext.py, line 366, in lgettext
return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 
25: ordinal not in range(128)
Python version: 2.5.2 final 0
-bash: mpicc: command not found

$ locale
LANG=de_DE.UTF-8
LANGUAGE=de_DE:de:en_GB:en
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_PAPER=C
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=C
LC_MEASUREMENT=C
LC_IDENTIFICATION=C
LC_ALL=C

$env
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=277d102e898ca2433e825b85486e6a0c-1219139095.924451-733166218
SSH_CLIENT=some snipped IP
SSH_TTY=/dev/pts/2
LC_ALL=C
USER=fabtagon
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
LIBGL_DRIVERS_PATH=/usr/lib/dri:/usr/lib64/dri
LD_LIBRARY_PATH=/usr/lib/xorg:/usr/lib64/xorg
MAIL=/var/mail/fabtagon
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/usr/share/doc/openmpi-doc
LANG=de_DE.UTF-8
HISTCONTROL=ignoreboth
SHLVL=1
HOME=/home/fabtagon
LANGUAGE=de_DE:de:en_GB:en
LOGNAME=fabtagon
SSH_CONNECTION=some snipped IP
LC_CTYPE=C
LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s
OLDPWD=/home/fabtagon
_=/usr/bin/env

Ubuntu version is 8.04.1.
I am connected via ssh from a Solaris 10 Gnome Terminal.

-- 
command-not-found crarshes with LS
https://bugs.launchpad.net/bugs/252203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 252203] Re: command-not-found crarshes with LS

2008-08-19 Thread fabtagon
Ubuntu installation language used to be German.

command-not-found works as expected for other programs which have only
one install candidate, e.g. nedit

It does also _not_ work for other programs with multiple install
candidates, e.g. mailx fails with exactly the same backtrace:

$ mailx
Das Programm mailx ist folgenden Paketen enthalten:
 * mailx
 * mailutils
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/ubuntu/+source/command-not-found
Please include the following information with the report:
'ascii' codec can't encode character u'\xe4' in position 25: ordinal not in 
range(128)
Traceback (most recent call last):
  File /usr/lib/command-not-found, line 28, in module
CommandNotFound(options.data_dir).advise(args[0], options.ignore_installed)
  File /usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py, 
line 151, in advise
print sys.stderr, _(Try: %s selected package) % apt-get install
  File /usr/lib/python2.5/gettext.py, line 584, in lgettext
return ldgettext(_current_domain, message)
  File /usr/lib/python2.5/gettext.py, line 556, in ldgettext
return t.lgettext(message)
  File /usr/lib/python2.5/gettext.py, line 366, in lgettext
return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 
25: ordinal not in range(128)
Python version: 2.5.2 final 0
bash: mailx: command not found

-- 
command-not-found crarshes with LS
https://bugs.launchpad.net/bugs/252203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 252203] Re: command-not-found crarshes with LS

2008-08-19 Thread Alejandro Díaz-Caro
Changing my locales to C, this issue is no longer there:

[EMAIL PROTECTED]:~$ locale
LANG=C
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_PAPER=C
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=C
LC_MEASUREMENT=C
LC_IDENTIFICATION=C
LC_ALL=

-- 
command-not-found crarshes with LS
https://bugs.launchpad.net/bugs/252203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 252203] Re: command-not-found crarshes with LS

2008-08-19 Thread Zygmunt Krynicki
This is not a c-n-f bug really but a python bug (or a feature). Since
you have LC_CTYPE=C python will assume that stdout needs ASCII encoding.
Because you also have LC_MESSAGES=de_DE.UTF-8 it will still translate
the message and fail to encode unicode string with ascii codec.

I can only say that this is UNIX suxx0rz problem not implementation
problem of a particular program. Either fix your configuration or fix
python to silently do the right thing in this odd case.

** Changed in: command-not-found (Ubuntu)
   Status: Confirmed = Won't Fix

** Summary changed:

- command-not-found crarshes with LS
+ command-not-found crashes when LC_CTYPE=C and LC_MESSAGES=de_DE.UTF-8

-- 
command-not-found crashes when LC_CTYPE=C and LC_MESSAGES=de_DE.UTF-8 
https://bugs.launchpad.net/bugs/252203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 252203] Re: command-not-found crarshes with LS

2008-07-27 Thread Zygmunt Krynicki
Could you please post your locale detals. The output of the env command
(if you dont mid) and information about the language you selected when
installing [K]ubuntu are sufficient. Thanks

-- 
command-not-found crarshes with LS
https://bugs.launchpad.net/bugs/252203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 252203] Re: command-not-found crarshes with LS

2008-07-27 Thread Alejandro Díaz-Caro
 Could you please post your locale detals.

[EMAIL PROTECTED]:~$ locale
LANG=C
LANGUAGE=es_AR:es
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_PAPER=C
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=C
LC_MEASUREMENT=C
LC_IDENTIFICATION=C
LC_ALL=

 The output of the env command

[EMAIL PROTECTED]:~$ env
KDE_MULTIHEAD=false
SSH_AGENT_PID=6484
DM_CONTROL=/var/run/xdmctl
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=4e1eab1deb9f8d98fbddbb0047ae7e7f-1217157844.332438-1507578340
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic,auto
GTK2_RC_FILES=/home/janus/.gtkrc-2.0-kde:/home/janus/.kde/share/config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/janus/.gtkrc:/home/janus/.kde/share/config/gtkrc
GS_LIB=/home/janus/.fonts
WINDOWID=25166199
KDE_FULL_SESSION=true
USER=janus
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
SSH_AUTH_SOCK=/tmp/ssh-xPfgFT6129/agent.6129
SESSION_MANAGER=local/ernestina:/tmp/.ICE-unix/6751
DCOP_YAKUAKE_SESSION=0
KONSOLE_DCOP=DCOPRef(yakuake,konsole)
PATH=/home/janus/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
DESKTOP_SESSION=kde
KONSOLE_DCOP_SESSION=DCOPRef(yakuake,session-1)
PWD=/home/janus
KDE_SESSION_UID=
LANG=C
HISTCONTROL=ignoreboth
HOME=/home/janus
SHLVL=1
LANGUAGE=es_AR:es
XCURSOR_THEME=DMZ-White
LOGNAME=janus
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:0
LESSCLOSE=/usr/bin/lesspipe %s %s
COLORTERM=
DCOP_YAKUAKE_TERMINAL=0
_=/usr/bin/env

 and information about the language you selected when
 installing [K]ubuntu

It was Spanish.

-- 
command-not-found crarshes with LS
https://bugs.launchpad.net/bugs/252203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 252203] Re: command-not-found crarshes with LS

2008-07-26 Thread Nick Ellery
Appears to work for me, but I'm using Ubuntu Hardy, and the issue could
be within Kubuntu.  Looks like the necessary debugging file has been
attached, so I'm confirming this report.

** Changed in: command-not-found (Ubuntu)
   Status: New = Confirmed

-- 
command-not-found crarshes with LS
https://bugs.launchpad.net/bugs/252203
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs