Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

prompt adam2 does not check for all spellings of language files



Hello,

While setting up a new gentoo linux system(still a work in progress) I ran into an issue
with the adam2 prompt using 8bit. It turned out that the function doesn't check for all
possible spellings. The resulting prompt was a mess.  In my case, parameter LANG is
set to "en_US.utf8" and adam2 only checks for uppercase and with a hyphen:

  if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *UTF-8* ]]; then

My solution was to add additional checks:

  if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *(UTF-8|utf-8|UTF8|utf8)* ]]; then

A quick check of the prompt files installed on my system found that the file
"prompt_special_chars" has a similar solution which may be better.

  if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *(UTF-8|utf8)* ]]; then

ZSH_PATCHLEVEL:  zsh-5.9-0-g73d3173

I apologize for not submitting this as a patch, but as I said I am still setting up a new
system and I haven't downloaded the source from the git repository yet. If this is already
fixed, sorry for the noise.

Regards,

Jim Murphy




Messages sorted by: Reverse Date, Date, Thread, Author