unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bozhidar Batsov <bozhidar.batsov@gmail.com>
To: Bozhidar Batsov <bozhidar@batsov.com>, Eli Zaretskii <eliz@gnu.org>
Cc: schwab@suse.de, emacs-devel@gnu.org
Subject: Re: Using utf-8-auto as a process coding system
Date: Tue, 22 Jul 2014 08:55:53 +0300	[thread overview]
Message-ID: <etPan.53cdfce9.643c9869.3e7d@bozhidar-mini.local> (raw)
In-Reply-To: <83fvhu4tbg.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]

Ops, I actually used an incorrect link. That’s the proper one - https://github.com/clojure-emacs/cider/issues/532

The gist of my problem is that Windows users have encoding related problems running cider (discussion here https://github.com/clojure-emacs/cider/issues/474). I guess the problem stems from this bit of code: 

(set-process-coding-system process 'utf-8-unix 'utf-8-unix)

As my Windows knowledge is quite limited I’m not sure how to handle the encoding for Windows users - perhaps I should check the operating system and set a different process encoding there? Maybe someone can point me to examples in the Emacs source code that handle this problem.

— 
Cheers,
Bozhidar
On July 21, 2014 at 6:37:17 PM, Eli Zaretskii (eliz@gnu.org) wrote:

> Date: Mon, 21 Jul 2014 17:54:42 +0300  
> From: Bozhidar Batsov <bozhidar@batsov.com>  
> Cc: emacs-devel <emacs-devel@gnu.org>  
>  
> On July 21, 2014 at 4:25:04 PM, Andreas Schwab (schwab@suse.de) wrote:  
> Bozhidar Batsov <bozhidar@batsov.com> writes:   
>  
> > I was wondering if someone can explain the rationale behind the utf-8-auto   
> > coding system that’s available in Emacs.   
>  
> UTF-8 (auto-detect signature (BOM))   
> So, it’s a good idea to use it for files, but it’s probably not a good idea to use it as process encoding, because there likely won’t be a BOM to check?  

Actually, I don't see why it would be a good idea to use it anywhere.  

Why did you get a recommendation for this encoding? (Sorry, I didn't  
find it in the URL you mentioned earlier.) It's sound like a strange  
recommendation to me.  

[-- Attachment #2: Type: text/html, Size: 3591 bytes --]

  reply	other threads:[~2014-07-22  5:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21 13:15 Using utf-8-auto as a process coding system Bozhidar Batsov
2014-07-21 13:25 ` Andreas Schwab
2014-07-21 14:54   ` Bozhidar Batsov
2014-07-21 15:36     ` Eli Zaretskii
2014-07-22  5:55       ` Bozhidar Batsov [this message]
2014-07-25 13:03         ` Eli Zaretskii
2014-07-28 15:05           ` Bozhidar Batsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=etPan.53cdfce9.643c9869.3e7d@bozhidar-mini.local \
    --to=bozhidar.batsov@gmail.com \
    --cc=bozhidar@batsov.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).