From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Brenner Newsgroups: gmane.emacs.help Subject: non-ascii chars in octal in sub-shell windows Date: Thu, 14 Jan 2010 19:22:20 -0800 Message-ID: <87aawgdpcj.fsf@kzsu.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263526844 32537 80.91.229.12 (15 Jan 2010 03:40:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2010 03:40:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 15 04:40:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NVd36-0002j2-Tn for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jan 2010 04:40:37 +0100 Original-Received: from localhost ([127.0.0.1]:58284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVd37-0005U0-GV for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jan 2010 22:40:37 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.rawbandwidth!news.posted.rawbandwidth.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 14 Jan 2010 21:21:42 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Cancel-Lock: sha1:lq+i+dj5GJzsE5gv8jEV8xVE91M= Original-Lines: 103 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 198.144.208.84 Original-X-Trace: sv3-oQ8LeNNOyQffQqsYiZoLDMINS7UQHH4Gk829ywibut6RlTWCIffaGmF6kbBB6ijyGaEWkI6a6YHwcJ5!3DiZFzMQKRMwwEIFarxQXIuPDFB65u0DIzZMK+ljxgXlLfPFlEvTxck3ETfqLSj0DHbGvJ0Yms4= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:176161 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:71231 Archived-At: When running a program that outputs utf-8 characters such as u-umlaut, in a terminal window I'll see the actual character, but in an emacs sub-shell I'm seeing the octal form (which looks like: \374). Currently, in my emacs init files, I have these two lines: (set-language-environment 'utf-8) (prefer-coding-system 'utf-8) What else might I need to get characters in a *shell* buffer to display correctly? I've tried a few other things, like set-terminal-coding-system, and set-locale-environment to no avail. The system LANG envar is set to: "en_US.UTF-8". describe-coding-system reports: Coding system for saving this buffer: Not set locally, use the default. Default coding system (for new files): U -- utf-8-unix (alias: mule-utf-8-unix) Coding system for keyboard input: U -- utf-8-unix (alias: mule-utf-8-unix) Coding system for terminal output: U -- utf-8 (alias: mule-utf-8) Coding system for inter-client cut and paste: nil Coding systems for process I/O: encoding input to the process: U -- utf-8-unix (alias: mule-utf-8-unix) decoding output from the process: U -- utf-8-unix (alias: mule-utf-8-unix) Defaults for subprocess I/O: decoding: U -- utf-8-unix (alias: mule-utf-8-unix) encoding: U -- utf-8-unix (alias: mule-utf-8-unix) Priority order for recognizing coding systems when reading files: 1. utf-8 (alias: mule-utf-8) 2. iso-2022-7bit 3. iso-latin-1 (alias: iso-8859-1 latin-1) 4. iso-2022-7bit-lock (alias: iso-2022-int-1) 5. iso-2022-8bit-ss2 6. emacs-mule 7. raw-text 8. iso-2022-jp (alias: junet) 9. in-is13194-devanagari (alias: devanagari) 10. chinese-iso-8bit (alias: cn-gb-2312 euc-china euc-cn cn-gb gb2312) 11. utf-8-auto 12. utf-8-with-signature 13. utf-16 14. utf-16be-with-signature (alias: utf-16-be) 15. utf-16le-with-signature (alias: utf-16-le) 16. utf-16be 17. utf-16le 18. japanese-shift-jis (alias: shift_jis sjis) 19. chinese-big5 (alias: big5 cn-big5 cp950) 20. undecided Other coding systems cannot be distinguished automatically from these, and therefore cannot be recognized automatically with the present coding system priorities. Particular coding systems specified for certain file names: OPERATION TARGET PATTERN CODING SYSTEM(s) --------- -------------- ---------------- File I/O "\\.dz\\'" (no-conversion . no-conversion) "\\.xz\\(~\\|\\.~[0-9]+~\\)?\\'" (no-conversion . no-conversion) "\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" (no-conversion . no-conversion) "\\.\\(?:tgz\\|svgz\\|sifz\\)\\(~\\|\\.~[0-9]+~\\)?\\'" (no-conversion . no-conversion) "\\.tbz2?\\'" (no-conversion . no-conversion) "\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" (no-conversion . no-conversion) "\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" (no-conversion . no-conversion) "\\.elc\\'" utf-8-emacs "\\.utf\\(-8\\)?\\'" utf-8 "\\.xml\\'" xml-find-file-coding-system "\\(\\`\\|/\\)loaddefs.el\\'" (raw-text . raw-text-unix) "\\.tar\\'" (no-conversion . no-conversion) "\\.po[tx]?\\'\\|\\.po\\." po-find-file-coding-system "\\.\\(tex\\|ltx\\|dtx\\|drv\\)\\'" latexenc-find-file-coding-system "" (undecided) Process I/O nothing specified Network I/O nothing specified [back]