Bug #3348
openzlogin -C vs zlogin and directory names
0%
Description
running oi_151a7, just happened to notice a strange anomaly with zlogin (as opposed to zlogin -C).
In the french locale, gnome creates new names for the default directories, namely 'Downloads' becomes 'Téléchargements'
The behaviour with zlogin -C seems OK:
richard@x3200:~$ pfexec zlogin -C devzone [Connecté à la console de la zone 'devzone'] devzone console login: richard Password: OpenIndiana (powered by illumos) SunOS 5.11 oi_151a7 October 2012 richard@devzone:~$ cd Téléchargements/ richard@devzone:~/Téléchargements$
but if I try to do the same with zlogin -l <username> devzone:
richard@x3200:~$ pfexec zlogin -l richard devzone [Connecté à la zone 'devzone' pts/3] Last login: Thu Nov 8 15:15:12 on console OpenIndiana (powered by illumos) SunOS 5.11 oi_151a7 October 2012 richard@devzone:~$ cd T Tx.ods Téléchargements/ richard@devzone:~$ cd Tlchargements/ -bash: cd: Tlchargements/: No such file or directory
in the above "cd" command, I tried command completion, and the two files are listed, but I can't type 'é', the character is not accepted. If I double click 'Téléchargements' and copy/paste it, the name is pasted in a deformed way as indicated above.
Since I do mostly ssh, I haven't noticed this before... Is it a bug, or is there something I must do the zlogin terminal to correct this?
Updated by Richard PALO about 11 years ago
strange, modified my shell in the zone from /usr/bin/bash to /usr/xpg4/bin/sh for pkgsrc purposes and just happened to notice that zlogin -l <username> devzone lets me type accented characters...
cool, what I wanted anyway.
But why doesn't it work with bash?
I tried setting it back and it breaks, but setting it again to /usr/xpg4/bin/sh it works.
Updated by Garrett D'Amore about 11 years ago
I think this is a bash problem. It would be useful to printenv both in the GZ and in the local zone, so we can check locale settings. I strongly suspect that bash's command line completion isn't groking the locale specific syntax somehow.
Updated by Richard PALO about 11 years ago
Garrett D'Amore wrote:
I think this is a bash problem. It would be useful to printenv both in the GZ and in the local zone, so we can check locale settings. I strongly suspect that bash's command line completion isn't groking the locale specific syntax somehow.
From the GZ:
richard@x3200:~$ printenv ORBIT_SOCKETDIR=/var/tmp/orbit-richard SUNW_NO_UPDATE_NOTIFY=true SSH_AGENT_PID=17224 GPG_AGENT_INFO=/tmp/gpg-MkaqKH/S.gpg-agent:17224:1 TERM=xterm SHELL=/bin/bash XDG_SESSION_COOKIE=58ed2573f24005f602a8671b000006a4-1352869052.271566-683865178 UT_NO_USAGE_TRACKING=1 GTK_RC_FILES=/etc/gtk/gtkrc:/home/richard/.gtkrc-1.2-gnome2 WINDOWID=29368807 GNOME_KEYRING_CONTROL=/var/tmp/keyring-jESjNk _AST_FEATURES=UNIVERSE - att USER=richard SSH_AUTH_SOCK=/var/tmp/keyring-jESjNk/ssh SESSION_MANAGER=local/x3200:/tmp/.ICE-unix/17186 USERNAME=richard PAGER=less -ins A__z="*SHLVL DESKTOP_SESSION=gnome MAIL=/var/mail/richard PATH=/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gnu/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin PWD=/home/richard EDITOR=gedit GDM_KEYBOARD_LAYOUT=us LANG=fr_FR.UTF-8 BZR_SSH=openssh GDM_LANG=fr_FR.UTF-8 GDMSESSION=gnome HOME=/home/richard SHLVL=2 TERMINFO=/opt/pkg/share/lib/terminfo GNOME_DESKTOP_SESSION_ID=this-is-deprecated LOGNAME=richard G_FILENAME_ENCODING=@locale,UTF-8 CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-1yZhVFvBAN,guid=e51a58e9ca6ce0104ce517fa50a324bc WINDOWPATH=7 DISPLAY=:0.0 G_BROKEN_FILENAMES=yes XAUTHORITY=/tmp/gdm-auth-cookies-KFaaWb/auth-for-richard-UFaaWb/database COLORTERM=gnome-terminal _=/usr/bin/printenv richard@x3200:~$
funny, it appears that printenv is found in pkg:/compatibility/ucb, not installed in the NGZ
so here is an alternative:
richard@x3200:~$ pfexec zlogin -l richard devzone [Connecté à la zone 'devzone' pts/5] Last login: Wed Nov 14 07:26:45 on pts/5 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a7 October 2012 richard@devzone:~$ set BASH=/bin/bash BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="0" [2]="28" [3]="1" [4]="release" [5]="i386-pc-solaris2.11") BASH_VERSION='4.0.28(1)-release' BZR_SSH=openssh COLUMNS=80 CVS_RSH=ssh DIRSTACK=() EUID=101 GROUPS=() HISTFILE=/home/richard/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/home/richard HOSTNAME=devzone HOSTTYPE=i386 HZ=100 IFS=$' \\t\\n' LINES=24 LOGNAME=richard MACHTYPE=i386-pc-solaris2.11 MAIL=/var/mail/richard MAILCHECK=60 OPTERR=1 OPTIND=1 OSTYPE=solaris2.11 PAGER='less -ins' PATH=/opt/pkg/sbin:/opt/pkg/bin:/opt/pkg/gnu/bin:/opt/pkg/gcc47/bin:/usr/bin:/usr/sbin:/sbin PIPESTATUS=([0]="0") PPID=8034 PS1=$'${LOGNAME}@$(/usr/bin/hostname):$(\\n [[ "${LOGNAME}" == "root" ]] && printf "%s" "${PWD/${HOME}/~}# " ||\\n printf "%s" "${PWD/${HOME}/~}\\\\$ ")' PS2='> ' PS4='+ ' PWD=/home/richard SHELL=/bin/bash SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor SHLVL=1 SUNW_NO_UPDATE_NOTIFY=true TERM=xterm-color TERMINFO=/opt/pkg/share/lib/terminfo UID=101 UT_NO_USAGE_TRACKING=1 _=set richard@devzone:~$