[MacPorts] #47622: bash escapes non-latin symbols when completing paths with spaces
#47622: bash escapes non-latin symbols when completing paths with spaces ---------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: bash ---------------------------+-------------------------------- Steps to reproduce: * Create a file or dir with at least one space in name and with some non- latin symbols (good example is "абвгдеёжзиклмнопрстуфчцчшщъыьэюя 1" because it includes whole Russian alphabet) * Type "ls аб" and press <TAB> Expected behavior: bash autocompletes a path and escapes only spaces Actual behavior: bash autocompletes a path but escapes most of the symbols I can't reproduce this using Linux and bash 4.2.37(1)-release and OS X bundled bash 3.2.57(1)-release. {{{ ~$ touch Тест\ 1 ~$ mkdir Тест\ 2 ~$ ls Тест<TAB><TAB> ~$ ls Те\с\т\ Тест 1 Тест 2/ ~$ ls Те\с\т\ 1 Тест 1 ~$ echo $BASH_VERSION 4.3.33(1)-release }}} {{{ ~$ /bin/bash ~$ ls Тест<TAB> ~$ ls Тест\ 1 Тест 1 ~$ echo $BASH_VERSION 3.2.57(1)-release }}} {{{ ~$ touch "стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя" ~$ ls стр<TAB> ~$ ls \с\т\р\ 1\ \с\т\р\ 2\ \с\т\р\ 3\ а?\?вгде\?\?жзиклмноп\р\с\т\у\ф\ч\ц\ч\ш\щ\ъ\ы\ь\э\ю\я стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя }}} {{{ ~$ locale LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL= }}} Linux: {{{ ~# touch "стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя" ~# ls стр<TAB> ~# ls стр\ 1\ стр\ 2\ стр\ 3\ абвгдеёжзиклмнопрстуфчцчшщъыьэюя стр 1 стр 2 стр 3 абвгдеёжзиклмнопрстуфчцчшщъыьэюя ~# echo $BASH_VERSION 4.2.37(1)-release }}} -- Ticket URL: <https://trac.macports.org/ticket/47622> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash escapes non-latin symbols when completing paths with spaces ----------------------------+-------------------------------- Reporter: xeron.oskom@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: bash | ----------------------------+-------------------------------- Comment (by xeron.oskom@…): This patch fixes this issue. Looks like the reason is readline. -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: bash | ----------------------------+---------------------- Changes (by larryv@…): * cc: raimue@… (removed) * keywords: => haspatch * owner: macports-tickets@… => raimue@… -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: bash | ----------------------------+---------------------- Comment (by xeron.oskom@…): Looks like bash was forced to use bundled readline in r87677. Also looks like debian's version of bash uses bundled readline as well. So I'm not sure my patch is correct. But I has this issue with bundled one. -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: bash | ----------------------------+---------------------- Comment (by xeron.oskom@…): Ok this is interesting. If I rebuild bash using Portfile from trunk it works OK. So issue is bash which was installed by macports using prebuild package. -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: bash | ----------------------------+---------------------- Comment (by raimue@…): I can reproduce this with the archive from the buildbot. If I build it locally it works as expected. I will try to force a rebuild on the buildbot. Maybe readline behaves differently based on the locale settings during build? Although I tried local builds with `LC_ALL=en_US.utf8` and `LC_ALL=C`, both work as expected. -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: bash | ----------------------------+---------------------- Changes (by raimue@…): * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: bash | ----------------------------+---------------------- Comment (by xeron.oskom@…): Looks like rebuilding doesn't help. @4.3.39_0 installed from prebuilt package still has this issue. -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: haspatch Port: bash | ----------------------------+---------------------- Comment (by xeron.oskom@…): Can't reproduce this with 4.4. Feel free to close. -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:8> MacPorts <https://www.macports.org/> Ports system for macOS
#47622: bash @4.3.33_0: escapes non-latin symbols when completing paths with spaces ----------------------------+---------------------- Reporter: xeron.oskom@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: worksforme | Keywords: haspatch Port: bash | ----------------------------+---------------------- Changes (by raimue@…): * status: assigned => closed * resolution: => worksforme Comment: Thanks for the confirmation. -- Ticket URL: <https://trac.macports.org/ticket/47622#comment:9> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts