From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Macintosh character display (128-255) Date: Wed, 29 Dec 2004 13:26:31 +0100 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104323459 25001 80.91.229.6 (29 Dec 2004 12:30:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Dec 2004 12:30:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 29 13:30:51 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 1CjcyZ-00063i-00 for ; Wed, 29 Dec 2004 13:30:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cjd9T-0006Kt-65 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Dec 2004 07:42:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cjd9E-0006K0-Tk for help-gnu-emacs@gnu.org; Wed, 29 Dec 2004 07:41:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cjd9D-0006JE-6x for help-gnu-emacs@gnu.org; Wed, 29 Dec 2004 07:41:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cjd9D-0006Ht-1v for help-gnu-emacs@gnu.org; Wed, 29 Dec 2004 07:41:51 -0500 Original-Received: from [217.72.192.226] (helo=smtp08.web.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CjcuT-0006Pe-24 for help-gnu-emacs@gnu.org; Wed, 29 Dec 2004 07:26:37 -0500 Original-Received: from [217.233.220.134] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.103 #184) id 1CjcuR-0006Tw-00; Wed, 29 Dec 2004 13:26:35 +0100 In-Reply-To: Original-To: shamino@techie.com (David C.) X-Mailer: Apple Mail (2.619) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23036 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23036 Am 29.12.2004 um 12:37 schrieb David C.: > (set-variable 'file-name-coding-system 'utf-8) > (set-variable 'default-buffer-file-coding-system 'mac-roman-unix) > (set-default-coding-systems 'mac-roman-unix) > (set-keyboard-coding-system 'mac-roman) > (prefer-coding-system 'mac-roman-unix) > > When I do this, every buffer is created in the Mac-Roman encoding. > And as a result of this, every buffer (whether new or loaded) shows my > test file as nothing but empty squares. In other words, it made the > problem worse. > > As for all the fontset work, I appreciate your assistance here, but I > really don't think fontsets are the issue. As I wrote originally, my > existing font configuration _DOES_ show the required characters when > I do a find-file on the buffer. It only has problems for new > buffers. And all buffers in all frames are using the same font. Trust me: with a bad font or fontset setup in a carbonized Emacs all your other settings are worthless: from where can Emacs take the glyph to display a number, a slot in a font's encoding? *This* mapping has to be correct! For example the Lucida Sans Typewriter font is for Mac OS X mac-cyrillic encoded although you can proof with other means that it's a "simple" Unicode font and the first few hundred code positions follow exactly the Unicode rule as for example shown in Character Palette, but since Mac OS X thinks different and maps 161 dec to some cyrillic glyph at U+04xx. Make the fontsets match your inventory, make them usable at your site, and use them, then you'll see a difference in GNU Carbon Emacs. The default font seems to be OK for (US) ASCII, i.e. code positions 32...127. If you want to see more in its proper glyphs you have to use fontsets, you have to declare Emacs from where, from which font, to take the glyphs that correspond so some ASCII, ISO, Mac-Roman, or Unicode numerical value, because Emacs does not want any help in this issue from Mac OS (9 or X, 9 cannot help at all!). So you have to instruct. Did you look into the Help menu -> Describe -> Show all of Mule Status? (Is it self-compiled or did you fetch it from the net? The OS version number looks unknown to me. From where did you fetch it?) I see in Terminal and in X11 in the mode-line usually a pointer to UTF-8 as u or uu or uuu. Shell has nothing, scratch is u, .emacs is 0 (ISO Latin-1 or ISO Latin-15). A Japanese Carbon Emacs from CVS comes with a default coding system of u, that is changed to M due to my settings. The t in your scratch buffer's mode-line stands for an undecided raw text: when you save it to a file you can decide about the coding system used for this. But till then Emacs does not know how to display character codes starting from 128 because there are so many coding systems in the world. So it has no real effect to force Emacs to display 8bit codes via (standard-display-8bit 128 255): Emacs is willing, and it is so by default, but which mapping do you wish? From which of the thousands of fonts can it take the glyphs? Try once: M-x set-frame-font TAB TAB -- and save this buffer for later contemplation! -- Greetings Pete A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.