Discussion:
display bug for both gnome-teminal & terminator & xterm
weidong
2018-08-24 10:25:00 UTC
Permalink
From: widon
To: bug-***@gnu.org,***@packages.debian.org
Subject: display bug for both gnome-teminal & terminator & xterm

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../. -I.././include -I.././lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/bash-vEMnMR/bash-4.4.18=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security
uname output: Linux widon-X555YI 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.4
Patch Level: 19
Release Status: release

Description:
if I cd into a deep Chinese Character path(which longer than the terminal width)
two problems:
1) the last document name is not right
2) some word (which is part of the document name) display behind the "$"

Repeat-By:
clear steps to reproduce (step by step);

1) build deep document use Chinese character (alphabet character do not have this bug)
2) cd into the deepest document (the path longer than the terminal width)
expected result:
the document name before '$' is right, and no extral character show behind '$'
actual result.:
the document name before '$' is not right and some extral character show behind '$'

Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't
Chet Ramey
2018-08-24 13:24:53 UTC
Permalink
Post by weidong
Bash Version: 4.4
Patch Level: 19
Release Status: release
if I cd into a deep Chinese Character path(which longer than the terminal width)
1) the last document name is not right
2) some word (which is part of the document name) display behind the "$"
clear steps to reproduce (step by step);
1) build deep document use Chinese character (alphabet character do not have this bug)
2) cd into the deepest document (the path longer than the terminal width)
the document name before '$' is right, and no extral character show behind '$'
the document name before '$' is not right and some extral character show behind '$'
A couple of things would be helpful:

1. What is the value of PS1?

2. Can you provide a filename or pathname containing Chinese characters I
can use to try and reproduce the issue?

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Chet Ramey
2018-08-24 13:44:04 UTC
Permalink
hello,
Thanks. What is your locale? The output of running `locale' should be
sufficient.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Chet Ramey
2018-08-26 19:49:02 UTC
Permalink
Can you reproduce the bug?
I believe this is fixed in bash-5.0-alpha. If you would like, you can
download that from the GNU git repository on savannah.gnu.org:

http://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-5.0-alpha.tar.gz

or the current development snapshot

http://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-c2ccaa219a3e45be433b5ff797ce0331d9edfe43.tar.gz

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Chet Ramey
2018-08-27 13:00:02 UTC
Permalink
I tried bash 5.0 alhpa, This bug is not fixed, but even worse.
Interesting. I can't reproduce it at all using bash-5.0, Mac OS X,
and Terminal.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Chet Ramey
2018-08-27 13:25:09 UTC
Permalink
I use ubuntu18.04, tried bash 5.0 alpha, maybe the vte's version is not the
same?
Do I need update vte library?
No idea. I'll look at it some more. (And it seems to work fine using iTerm
as well, for what that's worth.)
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Chet Ramey
2018-08-27 13:56:47 UTC
Permalink
Post by Chet Ramey
I use ubuntu18.04, tried bash 5.0 alpha, maybe the vte's version is not the
same?
Do I need update vte library?
No idea. I'll look at it some more. (And it seems to work fine using iTerm
as well, for what that's worth.)
I tried the current devel branch head on Debian 9 (a random VM I had around,
so I'm not sure about the patch level) and it seemed to display fine.

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Chet Ramey
2018-08-28 14:32:12 UTC
Permalink
The vte developer says I don't need to upgrade vte library.
"VTE's emulation behavior hasn't changed recently in ways that could be
relevant here. Seems to me you're on Ubuntu 18.04 which ships the latest
stable VTE anyway."
So, I don't know what to do now...
I'll take a look at Ubuntu when I get a chance.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Chet Ramey
2018-08-29 20:03:56 UTC
Permalink
Post by Chet Ramey
The vte developer says I don't need to upgrade vte library.
"VTE's emulation behavior hasn't changed recently in ways that could be
relevant here. Seems to me you're on Ubuntu 18.04 which ships the latest
stable VTE anyway."
So, I don't know what to do now...
I'll take a look at Ubuntu when I get a chance.
I'm not sure what to tell you.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU ***@case.edu http://tiswww.cwru.edu/~chet/
Loading...