← Back to team overview

desktop-packages team mailing list archive

[Bug 1514288] [NEW] Japanese Character Encoding Bug

 

Public bug reported:

After I set the character encoding as to Japanese(ISO-2022-JP), 
and then input "Enter", 
The bash prompt is shown doubled.
In another encodings, This bug is not occurred.
I tested it on precise and trusty.
It related to PS1 variable of bashrc.
You can find following lines at /etc/skel/.bashrc or $HOME/.bashrc

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

In above lines, The second line is incompatible for Japanese Encoding
mode.

** Affects: gnome-terminal (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1514288

Title:
  Japanese Character Encoding Bug

Status in gnome-terminal package in Ubuntu:
  Confirmed

Bug description:
  After I set the character encoding as to Japanese(ISO-2022-JP), 
  and then input "Enter", 
  The bash prompt is shown doubled.
  In another encodings, This bug is not occurred.
  I tested it on precise and trusty.
  It related to PS1 variable of bashrc.
  You can find following lines at /etc/skel/.bashrc or $HOME/.bashrc

  if [ "$color_prompt" = yes ]; then
      PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  else
      PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  fi

  In above lines, The second line is incompatible for Japanese Encoding
  mode.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1514288/+subscriptions


Follow ups