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

Matt D.
Thu Apr 6 09:39:00 GMT 2017

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/

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:
Unsubscribe info:

More information about the Cygwin mailing list