X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:reply-to:to:subject:message-id:date :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=MUUdJwNep6llYb+Eiy/9m2Pgd6Alt3tRRljFzpLmZrndlEJlnsf2j BJsknTayDzfetv5VSNQAqJDuTwrzRkmUcgAAEMV3Jxc+682xTCe2z4Fo4SGqRrGG KT7hSzPeLJtY3UoZo6Lh1WMuyHX9LZuC5nQOrv0k9h/qY7YWbv/zoM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:reply-to:to:subject:message-id:date :mime-version:content-type:content-transfer-encoding; s=default; bh=gIIpfe3HoBV20bCDik7DnO7w8fQ=; b=lbd9CsLXXB3FfidFZj/O7JwKSWi6 BAXz0zsJhZKvzvUzpyONoP/fB1gvMFmdGr8z2zM0yW7jwaNzFpUL2IMj2C1TC5Co jVV1SleC8j/8cijhve/orodYn5VO3z7j4eQjMQcio5c/c1K0LKtUGqU/hQlttvoS xyclepccPgHb55I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:589 X-HELO: mail-pg0-f46.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:reply-to:to:subject:message-id:date :user-agent:mime-version:content-transfer-encoding; bh=aTrKmtTBsPT3tGy5J7sVBCgITVMIEOxs/xIvbPKCQKE=; b=k7Qv8NWPRjCID6H6Pn9MSjdoCj7WUPNI9fEOBtNT+R/iaK/8TeASjeYTcIm3psRrJt sUgCCOjsVC6Q56ETicuL6vJz7n80Kkn2V3HUWq/LdfYHd1CgE7FfQ4uFQyE9mdwp9hsd 04ZwbHtB0kKa4eEoxsVjLYfxFeg+VWNAUXz9dJP2SHFAdpZ+6tPSCcd1h1RRN5mkVrhA 6AyHm5frK4hT/GWxYZE/IyGTovxRO1bH0w65YKvKaPBC4ybXKNAfAn2Vudp5zbiats6r YRXanAmEObFoVuzZSD9ok7+jILVbkIjcKGvInJG9m0SvUVzRA9dF/hMilVrUZmBSL79/ L6XA== X-Gm-Message-State: AFeK/H1Rstznr7u7hcw/yoUJpCTvMhDAFkezhPXS8FEpsACW6DVqlEah1Khg7ogT1Tuzsg== X-Received: by 10.84.218.15 with SMTP id q15mr4349081pli.47.1491471569782; Thu, 06 Apr 2017 02:39:29 -0700 (PDT) From: "Matt D." X-Google-Original-From: "Matt D." Reply-To: codespunk+cygwin AT gmail DOT com To: cygwin AT cygwin DOT com Subject: Settings from lang.sh causing garbled output in dialog when run from cmd.exe Message-ID: <58E60CD3.4010007@gmail.com> Date: Thu, 6 Apr 2017 05:39:31 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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