From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: Using utf-8-auto as a process coding system Date: Tue, 22 Jul 2014 08:55:53 +0300 Message-ID: References: <83fvhu4tbg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="53cdfce9_66334873_3e7d" X-Trace: ger.gmane.org 1406008581 12957 80.91.229.3 (22 Jul 2014 05:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2014 05:56:21 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org To: Bozhidar Batsov , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 22 07:56:15 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X9T3e-0005Zs-MK for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2014 07:56:14 +0200 Original-Received: from localhost ([::1]:37624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9T3e-00066D-6Y for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2014 01:56:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9T3X-00065w-AC for emacs-devel@gnu.org; Tue, 22 Jul 2014 01:56:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9T3T-0001Hk-8g for emacs-devel@gnu.org; Tue, 22 Jul 2014 01:56:07 -0400 Original-Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:44770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9T3O-0001HH-Jm; Tue, 22 Jul 2014 01:55:58 -0400 Original-Received: by mail-we0-f171.google.com with SMTP id p10so8669767wes.16 for ; Mon, 21 Jul 2014 22:55:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=ZySq2wmlt+uvnMmyD1j2OVO2PSGnz/L0WWGnHqHMWoQ=; b=YVPC+2zrTqV6Y/r9NyoUgBVxGHgz8RU8rLKMoFJGK+jrKEXO53hA9+8T4RlTRmbW+u OKYzbaHPIGJfyOGuzJcAZZNYkXyNv2h9k2UIvXcyqUbdtPyGxIFqenP5ltfdRGDdqf9i T4RzFX7nwLNGr7V82rotiA2Bb3xzaKpG7xq4n7dh2twl21UtFRRBnLZjL1JOHCeLWGdU zwS0c2dZILjqteKvSUSY8m2AUi419R+O/MzwR/3uN+TybjdkAxgCX/0BOIPyi1hckvLI RT9XMCb3andy6+X1Gd/QPCUjUXnCWV5ZHXXOiPOsw33DbqS6YkcN3usWN+cajj7K29Oi aiKA== X-Received: by 10.194.89.168 with SMTP id bp8mr30518258wjb.73.1406008557533; Mon, 21 Jul 2014 22:55:57 -0700 (PDT) Original-Received: from bozhidar-mini.local ([93.123.71.105]) by mx.google.com with ESMTPSA id d12sm42977472wjx.0.2014.07.21.22.55.55 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 22:55:56 -0700 (PDT) In-Reply-To: <83fvhu4tbg.fsf@gnu.org> X-Mailer: Airmail (237) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173075 Archived-At: --53cdfce9_66334873_3e7d Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ops, I actually used an incorrect link. That=E2=80=99s the proper one -=C2= =A0https://github.com/clojure-emacs/cider/issues/532 The gist of my problem is that Windows users have encoding related proble= ms running cider (discussion here=C2=A0https://github.com/clojure-emacs/c= ider/issues/474). I guess the problem stems from this bit of code:=C2=A0 (set-process-coding-system process 'utf-8-unix 'utf-8-unix) As my Windows knowledge is quite limited I=E2=80=99m not sure how to hand= le the encoding for Windows users - perhaps I should check the operating = system and set a different process encoding there=3F Maybe someone can po= int me to examples in the Emacs source code that handle this problem. =E2=80=94=C2=A0 Cheers, Bozhidar On July 21, 2014 at 6:37:17 PM, Eli Zaretskii (eliz=40gnu.org) wrote: > Date: Mon, 21 Jul 2014 17:54:42 +0300 =20 > =46rom: Bozhidar Batsov =20 > Cc: emacs-devel =20 > =20 > On July 21, 2014 at 4:25:04 PM, Andreas Schwab (schwab=40suse.de) wrote= : =20 > Bozhidar Batsov writes:=C2=A0 =20 > =20 > > I was wondering if someone can explain the rationale behind the utf-8= -auto=C2=A0 =20 > > coding system that=E2=80=99s available in Emacs.=C2=A0 =20 > =20 > UT=46-8 (auto-detect signature (BOM))=C2=A0 =20 > So, it=E2=80=99s a good idea to use it for files, but it=E2=80=99s prob= ably not a good idea to use it as process encoding, because there likely = won=E2=80=99t be a BOM to check=3F =20 Actually, I don't see why it would be a good idea to use it anywhere. =20 Why did you get a recommendation for this encoding=3F (Sorry, I didn't =20 find it in the URL you mentioned earlier.) It's sound like a strange =20 recommendation to me. =20 --53cdfce9_66334873_3e7d Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline