Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Recent nnir update broke search on office365
Date: Wed, 04 Feb 2015 11:30:52 +0800	[thread overview]
Message-ID: <87k2zy8iab.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <b4mh9v2wmzs.fsf@jpl.org>

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> On Sun, 01 Feb 2015 14:22:44 +0800, Eric Abrahamsen wrote:
>> `default-process-coding-system', which is bad because:
>
>> 1. That variable doesn't exist in xemacs
>
> How about simply making it a user option (the default is utf-8)?
> utf-8 is available in XEmacsen[1].
>
>> 2. It's probably just the wrong thing to do.
>
> I think so.  The most reasonable solution might be to use
> `default-buffer-file-coding-system' that is used for text
> encoding, however the value of it is unreliable.  I don't know
> how, but on Cygwin `(set-language-environment "Japanese")' sets
> it to `japanese-shift-jis-unix' even though the locale is set to
> ja_JP.UTF-8, for instance.  So is `default-process-coding-system'.
>
> [1] XEmacs 21.4 users need to load Mule-UCS: (require 'un-define)

There's also a variable `network-coding-system-alist' (nil on my
system). As far as I can tell, the "real" encoding system used for
talking to the imap server ought to be produced by a call that looks
like this:

(find-operation-coding-system 'open-network-stream name work-buffer host
service parameters)

Where the other arguments are produced inside of `open-protocol-stream'
aka `open-network-stream'. I tried eval'ing that while edebugging, and
it produced nil, which either means I did it wrong, or just that some
default value is being used instead -- perhaps just the buffer coding
system of the process buffer?

But even if we figure out a reliable way to find the right coding
system, there's still the issue of the imap servers and their various
coding quirks. I'm still surprised that searching for non-ascii terms is
such a difficult thing to do.

Eric




  reply	other threads:[~2015-02-04  3:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-31 16:53 Dave Goldberg
2015-02-01  1:40 ` Eric Abrahamsen
2015-02-01  6:22 ` Eric Abrahamsen
2015-02-03 11:49   ` Eric S Fraga
2015-02-03 13:01     ` Eric Abrahamsen
2015-02-03 15:57       ` e.fraga
2015-02-03 23:21         ` Dave Goldberg
2015-02-04  3:02           ` Eric Abrahamsen
2015-02-04 10:30             ` Eric S Fraga
2015-02-04  0:15   ` Katsumi Yamaoka
2015-02-04  3:30     ` Eric Abrahamsen [this message]
2015-02-04 18:28       ` Andreas Schwab
2015-02-05  1:03         ` Eric Abrahamsen

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

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

  git send-email \
    --in-reply-to=87k2zy8iab.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /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.
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 NNTP newsgroup(s).