* Settings from lang.sh causing garbled output in dialog when run from cmd.exe
@ 2017-04-06 9:39 Matt D.
2017-04-06 9:47 ` David Macek
0 siblings, 1 reply; 3+ messages in thread
From: Matt D. @ 2017-04-06 9:39 UTC (permalink / raw)
To: cygwin
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:
http://imgur.com/a/Y4mEC
http://imgur.com/a/7akZQ
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Settings from lang.sh causing garbled output in dialog when run from cmd.exe
2017-04-06 9:39 Settings from lang.sh causing garbled output in dialog when run from cmd.exe Matt D.
@ 2017-04-06 9:47 ` David Macek
[not found] ` <58E64F2C.4020704@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: David Macek @ 2017-04-06 9:47 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 229 bytes --]
On 6. 4. 2017 11:39, Matt D. wrote:
> Why am I getting garbled output with this line present?
Try calling `/proc/cygdrive/c/windows/system32/chcp.com 65001` before running `dialog ...`. Does that help?
--
David Macek
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3715 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Settings from lang.sh causing garbled output in dialog when run from cmd.exe
[not found] ` <58E64F2C.4020704@gmail.com>
@ 2017-04-06 14:32 ` David Macek
0 siblings, 0 replies; 3+ messages in thread
From: David Macek @ 2017-04-06 14:32 UTC (permalink / raw)
To: codespunk+cygwin, cygwin
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
On 6. 4. 2017 16:22, Matt D. wrote:
> On 4/6/2017 5:47 AM, David Macek wrote:
>> Try calling `/proc/cygdrive/c/windows/system32/chcp.com 65001` before running `dialog ...`. Does that help?
>
> It does not. I tried setting the code page to 65001 in cmd and/or after loading bash as a login shell. Neither solution worked.
>
> This is very easily reproducible for me just by loading cmd, 'bash --login' and then running the dialog sample I provided.
Thanks for the response.
Re-posting back to the mailing list.
--
David Macek
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3715 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-06 14:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-06 9:39 Settings from lang.sh causing garbled output in dialog when run from cmd.exe Matt D.
2017-04-06 9:47 ` David Macek
[not found] ` <58E64F2C.4020704@gmail.com>
2017-04-06 14:32 ` David Macek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).