Web lists-archives.com

Settings from lang.sh causing garbled output in dialog when run from cmd.exe

If I invoke a login shell from a Windows command prompt and run a dialog:

dialog --no-cancel --inputbox "test" 0 0 ""

I get garbled output. I do not have this issue when running from mintty.

See the following image examples:


If I remove this line from /etc/profile.d/lang.sh:

test -z "${_LC_ALL_SET_:-${LC_CTYPE:-$LANG}}" && export LANG=$(/usr/bin/locale -uU)

Then the problem goes away.

Why am I getting garbled output with this line present?

Matt D.

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple