You are not logged in.

#1 2013-06-16 12:28:19

wujek.srujek
Member
Registered: 2013-06-12
Posts: 38

terminals show code points instead of unicode chars on error feedback

Hi. I am currently mainly using lxterminal, but it also happens for urxvt and xterm, possibly others. When I type an invalid command that contains German characters, the feedback Bash gives shows the characters' code points (for lack of a better term). An example will explain it best:

wujek $ AüB
bash: $'A\303\274B': command not found

The same happens in vt2-6, so this is probably some bash thing.

Under Ubuntu that I have at work it works:

wujek $ AüB
bash: 'AüB': command not found

What do I need to change to have it show correctly? I have no unicode problems otherwise:

wujek $ echo AüB
AüB

wujek

Offline

#2 2013-06-16 12:34:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,550
Website

Re: terminals show code points instead of unicode chars on error feedback

This may be intentional: http://stackoverflow.com/questions/1095 … or-message

EDIT: seems Allan was asking the same question last year: https://lists.gnu.org/archive/html/bug- … 00039.html

Last edited by Trilby (2013-06-16 12:36:44)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-06-16 16:38:22

wujek.srujek
Member
Registered: 2013-06-12
Posts: 38

Re: terminals show code points instead of unicode chars on error feedback

Thanks for your answer. I had tried to search for it, but I couldn't come up with good search terms and found nothing ;d
Anyways, this doesn't seem to make too much sense to me, and is hideous... It may be that the Ubuntu system I have at work uses an older bash, it's still 11.10 (October 2011 release) I think.

Offline

Board footer

Powered by FluxBB