From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juraj Kubelka Newsgroups: gmane.emacs.help Subject: Problem with coding system and emacsclient Date: Thu, 19 Aug 2004 10:12:17 +0200 Organization: (Cesta 'org) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040819081217.GA5970@cesta> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092903205 20436 80.91.224.253 (19 Aug 2004 08:13:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2004 08:13:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 19 10:13:16 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 1Bxi2u-0005iN-00 for ; Thu, 19 Aug 2004 10:13:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxi79-0001jP-5D for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Aug 2004 04:17:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bxi6r-0001jA-JU for help-gnu-emacs@gnu.org; Thu, 19 Aug 2004 04:17:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bxi6n-0001iW-1G for help-gnu-emacs@gnu.org; Thu, 19 Aug 2004 04:17:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxi6m-0001iT-QJ for help-gnu-emacs@gnu.org; Thu, 19 Aug 2004 04:17:16 -0400 Original-Received: from [213.235.135.72] (helo=mail.tiscali.cz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bxi1z-0003ip-Ko for help-gnu-emacs@gnu.org; Thu, 19 Aug 2004 04:12:19 -0400 Original-Received: from localhost (213.235.108.34) by mail.tiscali.cz (6.7.021) id 410ACF3F00269FA2 for help-gnu-emacs@gnu.org; Thu, 19 Aug 2004 10:12:18 +0200 Original-Received: from jura by localhost with local (Exim 4.34) id 1Bxi1x-00026g-Au for help-gnu-emacs@gnu.org; Thu, 19 Aug 2004 10:12:17 +0200 Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline X-Accept-Language: cs, sk, en-gb, en-us, en X-URL: http://nightmare.sh.cvut.cz/~kubelkaj/ User-Agent: Mutt/1.5.6+20040803i 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20168 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20168 Hi! I have problem with opening files with emacsclient in different coding. My default coding system is: ------- M-x describe-coding-system RET RET Coding system for saving this buffer: 2 -- iso-8859-2 (alias of iso-latin-2) Default coding system (for new files): 2 -- iso-8859-2 (alias of iso-latin-2) Coding system for keyboard input: nil Coding system for terminal output: 2 -- iso-8859-2 (alias of iso-latin-2) Defaults for subprocess I/O: decoding: 2 -- iso-8859-2 (alias of iso-latin-2) encoding: 2 -- iso-8859-2 (alias of iso-latin-2) Priority order for recognizing coding systems when reading files: 1. iso-8859-2 (alias of iso-latin-2) 2. iso-latin-1 (alias: iso-8859-1 latin-1) 3. iso-2022-jp (alias: junet) 4. iso-2022-7bit 5. iso-2022-7bit-lock (alias: iso-2022-int-1) 6. iso-2022-8bit-ss2 7. emacs-mule 8. raw-text 9. japanese-shift-jis (alias: shift_jis sjis) 10. chinese-big5 (alias: big5 cn-big5) 11. no-conversion (alias: binary) 12. mule-utf-8 (alias: utf-8) ------- I can open file with coding system cp1250: C-x RET c cp1250-unix RET C-x C-f file_coding.txt Everything is correct. Now I save and close file. I can open file again with same sequence above. But when I want open file with emacsclient I cannot use prefix "C-x RET c cp1250-unix RET" and file is opened in "Unibyte raw-coding". ------- M-x describe-coding-system RET RET Coding system for saving this buffer: t -- raw-text ------- Characters are strange of course. I can use "C-x RET f cp1250-unix RET" and file is now opened in "Unibyte cp1250-unix". ------- M-x describe-coding-system RET RET Coding system for saving this buffer: D -- cp1250-unix ------- But old text is still displayed strange. And new characters added to file are strange too. Do you have any solution for it? How open file in different coding with emacsclient (I know coding of file)? Thanks. Jura -- + Juraj Kubelka +++++++++++++++++++++ + emailto:Juraj.Kubelka at email.cz + + jabber://cesta at jabber.cz + + icq: 25932918 + +++++++++++++++++++++++++++++++++++++