From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: Latin1 language environment breaks Cygwin shell buffer Date: 30 Mar 2002 08:32:39 -0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <877knurp7c.fsf@blarg.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017506021 11873 127.0.0.1 (30 Mar 2002 16:33:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 30 Mar 2002 16:33:41 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16rLnQ-00035O-00 for ; Sat, 30 Mar 2002 17:33:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16rLnJ-0004pz-00; Sat, 30 Mar 2002 11:33:33 -0500 Original-Received: from lists.blarg.net ([206.124.128.17]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16rLmW-0004hy-00 for ; Sat, 30 Mar 2002 11:32:44 -0500 Original-Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 5EA93BDCC for ; Sat, 30 Mar 2002 08:32:41 -0800 (PST) Original-Received: from offby1 (offby1.atm01.sea.blarg.net [206.124.138.125]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id IAA01191 for ; Sat, 30 Mar 2002 08:32:40 -0800 Original-Received: from offby1 by offby1 with local (Exim 3.35 #1 (Debian)) id 16rLmR-0006Wb-00 for ; Sat, 30 Mar 2002 08:32:39 -0800 Original-To: bug-gnu-emacs@gnu.org Original-Lines: 254 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:308 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:308 In GNU Emacs 21.2.1 (i386-mingw-nt5.0.2195) of 2002-03-22 on ALPHA configured using `configure --with-gcc (2.95)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: On a Cygwin system (excruciatingly painful details below), type `runemacs' at the shell, and then evaluate these four forms in order (adjust the name of the "bash" program as needed for your system): (set-language-environment "Latin-1") (setq shell-file-name "c:/cygwin/bin/bash") (setq explicit-shell-file-name "c:/cygwin/bin/bash") (shell) You will, not surprisingly, see a "*shell*" buffer appear. Now switch to that buffer with C-x o, and hit the Enter key -- you'll see $ : command not found (You'll also see a lot of cruft from escape sequences in the Bash prompt; you may ignore those) Now do (set-language-environment "English"), kill the shell buffer, do M-x shell, and again hit enter -- this time you won't see the `command not found' message. I expected my choice of language environment to have no effect on the functioning of the shell. I think that the shell is "seeing" a carriage-return at the end of the input line, and complaining about it; I think we see nothing before the colon in the error message because the carriage-return has caused Emacs to move the cursor to the beginning of the line and erase to the end of the line. Here's an experiment that I think confirms my carriage-return theory: $ od -c ; echo hey you buz 0000000 h e y y o u \r \n b u z \r \n 0000016 : command not found I typed "hey you" and "buz" on separate lines, and the `od' program indeed "saw" carriage-returns at the ends of those lines. output of `cygcheck -sv': Cygwin Win95/NT Configuration Diagnostics Current System Time: Sat Mar 30 08:16:31 2002 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem C:\cygwin\usr\X11R6\bin C:\cygwin\usr\games SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME = `C:\cygwin\home\Administrator' MAKE_MODE = `unix' PWD = `/usr/local' USER = `Administrator' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\administrator\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `RUSTY' COMSPEC = `C:\WINNT\system32\cmd.exe' CVS_RSH = `ssh' HOMEDRIVE = `C:' HOMEPATH = `\' LOGONSERVER = `\\RUSTY' MANPATH = `:/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/home/Administrator' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 6 Stepping 5, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0605' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\t [\u@\h \W]\$ ' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp' TERM = `cygwin' TMP = `c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp' USERDOMAIN = `RUSTY' USERNAME = `administrator' USERPROFILE = `C:\Documents and Settings\administrator' WINDIR = `C:\WINNT' _ = `/usr/bin/cygcheck.exe' Use `-r' to scan registry c: hd NTFS 4104Mb 32% CP CS UN PA FC d: cd N/A N/A e: net NTFS 5793Mb 62% CP CS PA offby1 . /cygdrive user binmode,noumount C:/cygwin / system binmode C:/cygwin/bin /usr/bin system binmode C:/cygwin/lib /usr/lib system binmode Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\sh.exe 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 "cygbz21.0.dll" v0.0 ts=2000/11/20 15:53 621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto.dll" v0.0 ts=2002/1/16 1:54 45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 "cygform5.dll" v0.0 ts=2001/4/24 22:28 35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0 "cygform6.dll" v0.0 ts=2002/1/8 22:03 19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 "cyggdbm.dll" v0.0 ts=2002/2/19 19:05 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 "cyghistory4.dll" v0.0 ts=2001/1/6 20:34 20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0 "cyghistory5.dll" v0.0 ts=2002/1/12 17:27 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0 "cygintl-1.dll" v0.0 ts=2001/12/13 1:28 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 "cygmenu5.dll" v0.0 ts=2001/4/24 22:27 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0 "cygmenu6.dll" v0.0 ts=2002/1/8 22:03 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++5.dll" v0.0 ts=2001/4/24 22:29 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses++6.dll" v0.0 ts=2002/1/8 22:03 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 "cygncurses5.dll" v0.0 ts=2001/4/24 22:17 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0 "cygncurses6.dll" v0.0 ts=2002/1/8 22:03 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 "cygpanel5.dll" v0.0 ts=2001/4/24 22:27 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0 "cygpanel6.dll" v0.0 ts=2002/1/8 22:03 40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0 "cygpcre.dll" v0.0 ts=2001/11/21 14:15 39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0 "cygpcreposix.dll" v0.0 ts=2001/11/21 14:15 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 "cygreadline4.dll" v0.0 ts=2001/1/6 20:34 121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0 "cygreadline5.dll" v0.0 ts=2002/1/12 17:27 156k 2002/01/16 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0 "cygssl.dll" v0.0 ts=2002/1/16 1:54 50k 2002/03/12 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2002/3/11 20:38 751k 2002/02/25 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2002/2/25 8:14 Cygwin DLL version info: DLL version: 1.3.10 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 51 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Mon Feb 25 11:14:34 EST 2002 Shared id: cygwin1S3 Cygwin Package Information Last downloaded files to: C:\Documents and Settings\administrator\Desktop Last downloaded files from: ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin Package Version ash 20020131-1 bash 2.05a-3 bzip2 1.0.1-6 crypt 1.0-1 cvs 1.11.0-1 cygwin 1.3.10-1 diff 0.0 fileutils 4.1-1 findutils 4.1 gawk 3.0.4-1 gdbm 1.8.0-4 grep 2.5g gzip 1.3.2-1 libintl1 0.10.40-1 libncurses5 5.2-1 libncurses6 5.2-8 libreadline4 4.1-2 libreadline5 4.2a-1 login 1.4-3 ncurses 5.2-8 openssh 3.1p1-1 openssl 0.9.6c-3 pcre 3.7-1 readline 4.2a-1 sed 3.02-1 sh-utils 2.0-2 tar 1.13.19-1 termcap 20010825-1 terminfo 5.2-1 textutils 2.0.21-1 unzip 5.41-1 which 1.5-1 zlib 1.1.4-1 Use -h to see help about each section -- PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5 C8BD 6337 0041 C01C 5276