\303\241': command not found when starting tcs...">

How to configure bash to print utf8 error message?

Strange UTF-8 handling in bash.

$ Γ‘ bash: $'\303\241': command not found 

when starting tcsh, therefore

 $ tcsh #or exec tcsh > Γ‘ Γ‘: Command not found. 

What could be wrong? How to configure bash for utf8?

And before marking this question as a duplicate, please also read the following:

My .inputrc :

 set meta-flag on set input-meta on set output-meta on set convert-meta off set show-all-if-ambiguous On "\e[A": history-search-backward "\e[B": history-search-forward set -o vi 

my ENV:

 LOCALE=UTF-8; export LOCALE LESSCHARSET='utf-8'; export LESSCHARSET LANG=en_US.UTF-8; export LANG LC_ALL=en_US.UTF-8; export LC_ALL 

IMO, I did everything that needs to be done to handle utf8 in bash.

bash version:

 bash --version GNU bash, version 4.2.28(0)-release (amd64-portbld-freebsd9.0) 

Any idea?

+1
source share
1 answer

New in Bash 4.2. See this .

There is a change in bash -4.2 that prints characters in error messages using ANSI-C escape sequences if isprint () fails for any character in the string. He intended to do things like \ r in file names. It came from cygwin, but is generally useful.

Chet

Chet Reime is the guardian of Bash.

+1
source

Source: https://habr.com/ru/post/957098/


All Articles