From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Barnard Newsgroups: gmane.emacs.devel Subject: Re: Problem with emacs -nw under OS X 10.3.5 using latest CVS Date: Tue, 9 Nov 2004 11:38:19 -0500 Message-ID: References: <0AFA7E6B-2DE9-11D9-9EB1-000A95A6AB66@bio.ri.ccf.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: multipart/mixed; boundary="===============0694414161==" X-Trace: sea.gmane.org 1100018558 8600 80.91.229.6 (9 Nov 2004 16:42:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Nov 2004 16:42:38 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 09 17:42:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CRZ4W-0004uB-00 for ; Tue, 09 Nov 2004 17:42:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRZCv-00006y-HI for ged-emacs-devel@m.gmane.org; Tue, 09 Nov 2004 11:51:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CRZCh-00005c-8m for emacs-devel@gnu.org; Tue, 09 Nov 2004 11:50:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CRZCe-0008VO-8s for emacs-devel@gnu.org; Tue, 09 Nov 2004 11:50:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRZCe-0008VK-6I for emacs-devel@gnu.org; Tue, 09 Nov 2004 11:50:44 -0500 Original-Received: from [192.35.79.84] (helo=grieg.bio.ri.ccf.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CRZ4B-0004sB-Nv for emacs-devel@gnu.org; Tue, 09 Nov 2004 11:41:59 -0500 Original-Received: from [10.76.70.87] (clinton [10.76.70.87]) by grieg.bio.ri.ccf.org (8.12.10/8.12.10) with ESMTP id iA9GfN7H008045; Tue, 9 Nov 2004 11:41:23 -0500 (EST) In-Reply-To: Original-To: "YAMAMOTO Mitsuharu" X-Mailer: Apple Mail (2.619) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29655 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29655 --===============0694414161== Content-Type: multipart/alternative; boundary=Apple-Mail-4--695467936 --Apple-Mail-4--695467936 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Yamamoto, Thanks for the patch, unfortunately, it didn't solve the issue. However, setting LANG="en_US.UTF-8" made the problem disappear. Apparently, OS X 10.3 has some problems with locales in terminal mode. Others are reporting problems with svn -- see http://mcmanus.typepad.com/grind/2004/10/subversion_on_m.html. Anyone have any more insight? John On Nov 4, 2004, at 5:21 AM, YAMAMOTO Mitsuharu wrote: >>>>>> On Wed, 3 Nov 2004 17:38:11 -0500, John Barnard >>>>>> said: > >> I'm seeing some odd behavior when running emacs in terminal mode >> (i.e., emacs -nw) built from the latest CVS (as of yesterday) under >> 10.3.5 and latest released dev. tools. Basically there's no output >> shown from any command, prompt is not responsive, and the process >> loads spikes to 100%. > > I could reproduce the problem using a Carbon build by setting LANG to > C. Does the following patch work for you? > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp > > Index: src/keyboard.c > =================================================================== > RCS file: /cvsroot/emacs/emacs/src/keyboard.c,v > retrieving revision 1.792 > diff -c -r1.792 keyboard.c > *** src/keyboard.c 9 Oct 2004 23:24:49 -0000 1.792 > --- src/keyboard.c 4 Nov 2004 10:11:05 -0000 > *************** > *** 607,613 **** > > /* We are unable to use interrupts if FIONREAD is not available, > so flush SIGIO so we won't try. */ > ! #if !defined (FIONREAD) || defined(HAVE_CARBON) > #ifdef SIGIO > #undef SIGIO > #endif > --- 607,613 ---- > > /* We are unable to use interrupts if FIONREAD is not available, > so flush SIGIO so we won't try. */ > ! #ifndef FIONREAD > #ifdef SIGIO > #undef SIGIO > #endif > Index: src/s/darwin.h > =================================================================== > RCS file: /cvsroot/emacs/emacs/src/s/darwin.h,v > retrieving revision 1.16 > diff -c -r1.16 darwin.h > *** src/s/darwin.h 2 Sep 2004 17:02:11 -0000 1.16 > --- src/s/darwin.h 4 Nov 2004 10:11:07 -0000 > *************** > *** 217,222 **** > --- 217,229 ---- > /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ > #define HAVE_SOCKETS > > + /* In Carbon, asynchronous I/O (using SIGIO) can't be used for window > + events because they don't come from sockets, even though it works > + fine on tty's. */ > + #ifdef HAVE_CARBON > + #define NO_SOCK_SIGIO > + #endif > + > /* Extra initialization calls in main for Mac OS X system type. */ > #ifdef HAVE_CARBON > #define SYMS_SYSTEM syms_of_mac() > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel > > ----------------------------------------------------------------- John Barnard, Ph.D. Associate Staff Director, Collaborative Biostatistics Center Dept. of Biostatistics and Epidemiology, Wb4 Cleveland Clinic Foundation 9500 Euclid Ave. Cleveland, OH 44195 E-mail: jbarnard@bio.ri.ccf.org Phone: (216) 444-5945 Fax: (216) 444-8021 Web: www.bio.ri.ccf.org --Apple-Mail-4--695467936 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII Yamamoto, Thanks for the patch, unfortunately, it didn't solve the issue. However, setting LANG="en_US.UTF-8" made the problem disappear. Apparently, OS X 10.3 has some problems with locales in terminal mode. Others are reporting problems with svn -- see http://mcmanus.typepad.com/grind/2004/10/subversion_on_m.html. Anyone have any more insight? John On Nov 4, 2004, at 5:21 AM, YAMAMOTO Mitsuharu wrote: On Wed, 3 Nov 2004 17:38:11 -0500, John Barnard < said: I'm seeing some odd behavior when running emacs in terminal mode (i.e., emacs -nw) built from the latest CVS (as of yesterday) under 10.3.5 and latest released dev. tools. Basically there's no output shown from any command, prompt is not responsive, and the process loads spikes to 100%. I could reproduce the problem using a Carbon build by setting LANG to C. Does the following patch work for you? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp Index: src/keyboard.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/keyboard.c,v retrieving revision 1.792 diff -c -r1.792 keyboard.c *** src/keyboard.c 9 Oct 2004 23:24:49 -0000 1.792 --- src/keyboard.c 4 Nov 2004 10:11:05 -0000 *************** *** 607,613 **** /* We are unable to use interrupts if FIONREAD is not available, so flush SIGIO so we won't try. */ ! #if !defined (FIONREAD) || defined(HAVE_CARBON) #ifdef SIGIO #undef SIGIO #endif --- 607,613 ---- /* We are unable to use interrupts if FIONREAD is not available, so flush SIGIO so we won't try. */ ! #ifndef FIONREAD #ifdef SIGIO #undef SIGIO #endif Index: src/s/darwin.h =================================================================== RCS file: /cvsroot/emacs/emacs/src/s/darwin.h,v retrieving revision 1.16 diff -c -r1.16 darwin.h *** src/s/darwin.h 2 Sep 2004 17:02:11 -0000 1.16 --- src/s/darwin.h 4 Nov 2004 10:11:07 -0000 *************** *** 217,222 **** --- 217,229 ---- /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ #define HAVE_SOCKETS + /* In Carbon, asynchronous I/O (using SIGIO) can't be used for window + events because they don't come from sockets, even though it works + fine on tty's. */ + #ifdef HAVE_CARBON + #define NO_SOCK_SIGIO + #endif + /* Extra initialization calls in main for Mac OS X system type. */ #ifdef HAVE_CARBON #define SYMS_SYSTEM syms_of_mac() _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel 0101,0101,0101 ----------------------------------------------------------------- John Barnard, Ph.D. Associate Staff Director, Collaborative Biostatistics Center Dept. of Biostatistics and Epidemiology, Wb4 Cleveland Clinic Foundation 9500 Euclid Ave. Cleveland, OH 44195 E-mail: jbarnard@bio.ri.ccf.org Phone: (216) 444-5945 Fax: (216) 444-8021 Web: www.bio.ri.ccf.org --Apple-Mail-4--695467936-- --===============0694414161== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0694414161==--