From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: how to change file coding system Date: Fri, 19 Aug 2005 15:24:42 +0200 Message-ID: <6a0369ae0a5958175339db8c71fa9799@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1124459364 18772 80.91.229.2 (19 Aug 2005 13:49:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2005 13:49:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 19 15:49:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E67Dl-0001Fe-O9 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Aug 2005 15:47:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E67HL-00083Q-9J for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Aug 2005 09:51:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E66xF-0007kZ-6R for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 09:30:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E66xC-0007jM-Ab for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 09:30:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E66xB-0007cA-Vp for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 09:30:38 -0400 Original-Received: from [217.72.192.225] (helo=smtp07.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1E677h-0001ao-JV for help-gnu-emacs@gnu.org; Fri, 19 Aug 2005 09:41:30 -0400 Original-Received: from [84.245.189.70] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #314) id 1E66rU-00010m-00; Fri, 19 Aug 2005 15:24:44 +0200 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Martin Monsorno X-Mailer: Apple Mail (2.622) 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: news.gmane.org gmane.emacs.help:28862 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28862 Am 19.08.2005 um 12:20 schrieb Martin Monsorno: > Peter Dyballa writes: > >> I have GNU Emacs 21.3.50 from CVS in rare use too. > > You have 21.3.50 from CVS? I have a stable 21.4.1 version! But I > tried out 22.0.50 from cvs and: it NEVER does show me an '=FC'. > Instead it always displays the code: \374 in the latin-1 file, and > \303\274 in the UTF-8 file. What about a nice fontset? (create-fontset-from-fontset-spec=20 "-adobe-courier-medium-r-*-*-11-*-*-*-*-*-fontset-11pt_adobe_courier" t=20= 'noerror) (set-fontset-font "fontset-11pt_adobe_courier" = 'latin-iso8859-1 =20 '("adobe-courier" . "iso8859-1")) (set-fontset-font "fontset-11pt_adobe_courier" = 'latin-iso8859-2 =20 '("adobe-courier" . "iso8859-2")) (set-fontset-font "fontset-11pt_adobe_courier" = 'latin-iso8859-3 =20 '("adobe-courier" . "iso8859-3")) (set-fontset-font "fontset-11pt_adobe_courier" = 'latin-iso8859-4 =20 '("adobe-courier" . "iso8859-4")) (set-fontset-font "fontset-11pt_adobe_courier" = 'greek-iso8859-7 =20 '("adobe-couriergr" . "iso8859-7")) (set-fontset-font "fontset-11pt_adobe_courier" = 'latin-iso8859-9 =20 '("adobe-courier" . "iso8859-9")) (set-fontset-font "fontset-11pt_adobe_courier" = 'latin-iso8859-14=20 '("adobe-courier" . "iso8859-14")) (set-fontset-font "fontset-11pt_adobe_courier" = 'latin-iso8859-15=20 '("adobe-courier" . "iso8859-15")) (set-fontset-font "fontset-11pt_adobe_courier" = 'mule-unicode-0100-24ff=20 '("adobe-courier" . "iso10646-1")) (set-fontset-font "fontset-11pt_adobe_courier" = 'mule-unicode-2500-33ff=20 '("adobe-courier" . "iso10646-1")) (set-fontset-font "fontset-11pt_adobe_courier" = 'mule-unicode-e000-ffff=20 '("adobe-courier" . "iso10646-1")) (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0370) (decode-char 'ucs #x03cf)) '("courier new" . "iso10646-1")) = ;=20 Greek (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x03d0) (decode-char 'ucs #x03ff)) '("lucida sans typewriter" .=20 "iso10646-1")) ; Coptic (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0400) (decode-char 'ucs #x04ff)) '("lucida sans typewriter" .=20 "iso10646-1")) ; Cyrillic (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0500) (decode-char 'ucs #x052f)) '("lucida sans typewriter" .=20 "iso10646-1")) ; Cyrillic Supplement (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0530) (decode-char 'ucs #x058f)) '("aramian unicode" .=20 "iso10646-1")) ; Armenian (sylfaen (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0590) (decode-char 'ucs #x05af)) '("lucida sans typewriter" .=20 "iso10646-1")) ; Hebrew (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x05b0) (decode-char 'ucs #x05ff)) '("courier new" . "iso10646-1")) = ;=20 Hebrew (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0600) (decode-char 'ucs #x066f)) '("courier new" . "iso10646-1")) = ;=20 Arabic (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0670) (decode-char 'ucs #x06ff)) '("lucida sans typewriter" .=20 "iso10646-1")) ; Arabic (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0700) (decode-char 'ucs #x074f)) '("titus cyberbit basic" .=20 "iso10646-1")) ; Syriac (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0780) (decode-char 'ucs #x07bf)) '("titus cyberbit basic" .=20 "iso10646-1")) ; Thaana (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0900) (decode-char 'ucs #x097f)) '("titus cyberbit basic" .=20 "iso10646-1")) ; Devanagari (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0980) (decode-char 'ucs #x09ff)) '("code2000" . "iso10646-1")) = ;=20 Bengali (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0a00) (decode-char 'ucs #x0a7f)) '("code2000" . "iso10646-1")) = ;=20 Gurmukhi (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0a80) (decode-char 'ucs #x0aff)) '("code2000" . "iso10646-1")) = ;=20 Gujarati (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0b00) (decode-char 'ucs #x0b7f)) '("code2000" . "iso10646-1")) = ;=20 Oriya (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0b80) (decode-char 'ucs #x0bff)) '("code2000" . "iso10646-1")) = ;=20 Tamil (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0c00) (decode-char 'ucs #x0c7f)) '("code2000" . "iso10646-1")) = ;=20 Telugu (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0c80) (decode-char 'ucs #x0cff)) '("code2000" . "iso10646-1")) = ;=20 Kannada (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0d00) (decode-char 'ucs #x0d7f)) '("code2000" . "iso10646-1")) = ;=20 Malayalam (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0d80) (decode-char 'ucs #x0dff)) '("akshar unicode" .=20 "iso10646-1")) ; Sinhala (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0e00) (decode-char 'ucs #x0e7f)) '("code2000" . "iso10646-1")) = ; Thai (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0e80) (decode-char 'ucs #x0eff)) '("code2000" . "iso10646-1")) = ; Lao (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x0f00) (decode-char 'ucs #x0fff)) '("xtashi" . "iso10646-1")) ;=20 Tibetan (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1000) (decode-char 'ucs #x109f)) '("code2000" . "iso10646-1")) = ;=20 Myanmar (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x10a0) (decode-char 'ucs #x10ff)) '("everson mono unicode" .=20 "iso10646-1")) ; Georgian (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1100) (decode-char 'ucs #x11ff)) '("code2000" . "iso10646-1")) = ;=20 Hangul Jamo (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1200) (decode-char 'ucs #x137f)) '("ethiopia jiret" .=20 "iso10646-1")) ; Ethiopic (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x13a0) (decode-char 'ucs #x13ff)) '("everson mono unicode" .=20 "iso10646-1")) ; Cherokee (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1400) (decode-char 'ucs #x167f)) '("everson mono unicode" .=20 "iso10646-1")) ; Canadian Aboriginal Syllabics (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1680) (decode-char 'ucs #x169f)) '("everson mono unicode" .=20 "iso10646-1")) ; Ogham (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x16a0) (decode-char 'ucs #x16ff)) '("everson mono unicode" .=20 "iso10646-1")) ; Runic ; (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char=20 'ucs #x1700) (decode-char 'ucs #x171f)) '("code2000" . "iso10646-1")) = ;=20 Tagalog ; (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char=20 'ucs #x1720) (decode-char 'ucs #x173f)) '("code2000" . "iso10646-1")) = ;=20 Hanunoo (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1740) (decode-char 'ucs #x175f)) '("code2000" . "iso10646-1")) = ;=20 Buhid ; (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char=20 'ucs #x1760) (decode-char 'ucs #x177f)) '("code2000" . "iso10646-1")) = ;=20 Tagbanwa (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1780) (decode-char 'ucs #x17ff)) '("code2000" . "iso10646-1")) = ;=20 Khmer (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1800) (decode-char 'ucs #x18af)) '("code2000" . "iso10646-1")) = ;=20 Mongolian (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1900) (decode-char 'ucs #x194f)) '("code2000" . "iso10646-1")) = ;=20 Limbu (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1950) (decode-char 'ucs #x197f)) '("tai le valentinium" .=20 "iso10646-1")) ; Tai Le (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x19e0) (decode-char 'ucs #x19ff)) '("cdt khmer" . "iso10646-1")) = ;=20 Khmer Symbols (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1d00) (decode-char 'ucs #x1d7f)) '("everson mono unicode" .=20 "iso10646-1")) ; Phonetic Extensions (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1e00) (decode-char 'ucs #x1eff)) '("courier" . "iso10646-1")) ; Latin=20= Extended Additional (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x1f00) (decode-char 'ucs #x1fff)) '("everson mono unicode" .=20 "iso10646-1")) ; Greek Extended (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2000) (decode-char 'ucs #x206f)) '("everson mono unicode" .=20 "iso10646-1")) ; General Puctuation (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2070) (decode-char 'ucs #x209f)) '("everson mono unicode" .=20 "iso10646-1")) ; Superscripts and Subscripts (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x20a0) (decode-char 'ucs #x20cf)) '("everson mono unicode" .=20 "iso10646-1")) ; Currency Symbols (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x20d0) (decode-char 'ucs #x20ff)) '("everson mono unicode" .=20 "iso10646-1")) ; Combining Marks for Symbols (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2100) (decode-char 'ucs #x214f)) '("everson mono unicode" .=20 "iso10646-1")) ; Letterlike Symbols ; (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char=20 'ucs #x2150) (decode-char 'ucs #x218f)) '("courier new" .=20 "iso10646-1")) ; Number Forms (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2190) (decode-char 'ucs #x21ff)) '("code2000" . "iso10646-1")) = ;=20 *Arrows (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2200) (decode-char 'ucs #x22ff)) '("code2000" . "iso10646-1")) = ;=20 Mathematical Operators (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2300) (decode-char 'ucs #x23ff)) '("code2000" . "iso10646-1")) = ;=20 Miscellaneous Technical (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2400) (decode-char 'ucs #x243f)) '("code2000" . "iso10646-1")) = ;=20 Control Pictures (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2440) (decode-char 'ucs #x245f)) '("code2000" . "iso10646-1")) = ;=20 Optical Character Recognition (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2460) (decode-char 'ucs #x24ff)) '("code2000" . "iso10646-1")) = ;=20 Enclosed Alphanumerics (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2500) (decode-char 'ucs #x257f)) '("code2000" . "iso10646-1")) = ; Box=20 Drawing (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2580) (decode-char 'ucs #x259f)) '("code2000" . "iso10646-1")) = ;=20 Block Elements (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x25a0) (decode-char 'ucs #x25ff)) '("code2000" . "iso10646-1")) = ;=20 Geometric Shapes (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2600) (decode-char 'ucs #x26ff)) '("code2000" . "iso10646-1")) = ;=20 Miscellaneous Symbols (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2700) (decode-char 'ucs #x27bf)) '("code2000" . "iso10646-1")) = ;=20 Dingbats (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x27c0) (decode-char 'ucs #x27ef)) '("code2000" . "iso10646-1")) = ;=20 Miscellaneous Math Symbols-A (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x27f0) (decode-char 'ucs #x27ff)) '("code2000" . "iso10646-1")) = ;=20 Supplemental Arrows-A (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2800) (decode-char 'ucs #x28ff)) '("code2000" . "iso10646-1")) = ;=20 Braille Patterns (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2900) (decode-char 'ucs #x297f)) '("code2000" . "iso10646-1")) = ;=20 Supplemental Arrows-B (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2980) (decode-char 'ucs #x29ff)) '("code2000" . "iso10646-1")) = ;=20 Miscellaneous Math Symbols-B (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2a00) (decode-char 'ucs #x2aff)) '("code2000" . "iso10646-1")) = ;=20 Supplemental Math Operators (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2b00) (decode-char 'ucs #x2bff)) '("code2000" . "iso10646-1")) = ;=20 Miscellaneous Symbols and Arrows (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2e80) (decode-char 'ucs #x2eff)) '("code2000" . "iso10646-1")) = ; CJK=20 Radicals Supplement (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2f00) (decode-char 'ucs #x2fdf)) '("code2000" . "iso10646-1")) = ;=20 Kangxi Radicals (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x2ff0) (decode-char 'ucs #x2fff)) '("code2000" . "iso10646-1")) = ;=20 Ideographic Description Characters (set-fontset-font "fontset-11pt_adobe_courier" (cons = (decode-char 'ucs=20 #x3000) (decode-char 'ucs #x303f)) '("code2000" . "iso10646-1")) = ; CJK=20 Symbols and Punctuation It looks ugly here ... 'though it needs to be continued! > > Specifying the coding system in the headerline doesn't change > anything: buffer-file-coding-system's value remains raw-text-unix. Then you're doing something the wrong way ... At least my experience=20 (>10a) tells me so. This code never failed for me (and I am no=20 politician): -*- coding: iso-8859-15; -*- > >> And yes, I meant and I wrote C-x RET r. Usually I first view a file's >> contents and judge then if I need to change the encoding Emacs uses = by >> default. > > C-h k C-x RET r is undefined > --> C-x RET r is undefined > C-h b shows, amongst many others: C-x RET l set-language-environment C-x RET c universal-coding-system-argument C-x RET C-\ set-input-method C-x RET X set-next-selection-coding-system C-x RET x set-selection-coding-system C-x RET p set-buffer-process-coding-system C-x RET k set-keyboard-coding-system C-x RET t set-terminal-coding-system C-x RET F set-file-name-coding-system C-x RET r revert-buffer-with-coding-system C-x RET f set-buffer-file-coding-system BTW: to which value is LC_CTYPE set? LC_ALL? LANG? -- Mit friedvollen Gr=FC=DFen Pete Hupende Autos bei=DFen nicht.