unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Cc: karl@freefriends.org, emacs-devel@gnu.org
Subject: Re: Processing Chinese Big5 in Emacs Info reader
Date: 18 Jan 2004 08:52:26 +0200	[thread overview]
Message-ID: <uznclkatx.fsf@elta.co.il> (raw)
In-Reply-To: <m2ektx6d94.fsf@cm.nctu.edu.tw> (message from Chun-Chieh Huang on Sun, 18 Jan 2004 13:23:51 +0800)

> From: Chun-Chieh Huang <jjhuang@cm.nctu.edu.tw>
> Date: Sun, 18 Jan 2004 13:23:51 +0800
> 
> I only changed one line in info.el to support Big5 Info reading in
> Emacs, as below: (info.el from CVS)
> 
> [jjhuang@albert-laptop lisp]$ diff info.el.~1.376.~ info.el
> 343c343,344
> <               (coding-system-for-write 'no-conversion)
> ---
> > ;;            (coding-system-for-write 'no-conversion)
> >               (coding-system-for-write 'buffer-file-coding-system)

Thanks.

However, I wonder why did this work for you at all, and why the
original code didn't.

Are your Info files kept compressed on the disk, and if so, in what
format?  The part of code that you changed is only run for compressed
Info files and doesn't change a bit the case of uncompressed Info
files.

On the other hand, coding-system-for-write is set to no-conversion
because it is used to write the compressed file to a temporary file
that is submitted to a decoder program, such as unzip or bunzip2;
clearly, writing compressed text with any other value for
coding-system-for-write is looking for trouble.  Binding
coding-system-for-read, which is used to read back the results of
decompression, is more appropriate, but Emacs should already set that
correctly by itself, at least in the locale where Big5 is the
preferred encoding.

So I'm confused how could this change solve your problem, and even
what is the problem (i.e. what happens if you use the original
info.el).  Could you please elaborate to show me what I'm missing?

  reply	other threads:[~2004-01-18  6:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-18  5:23 Processing Chinese Big5 in Emacs Info reader Chun-Chieh Huang
2004-01-18  6:52 ` Eli Zaretskii [this message]
2004-01-18 15:28   ` Chun-Chieh Huang
2004-01-18 16:16 ` Chun-Chieh Huang

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=uznclkatx.fsf@elta.co.il \
    --to=eliz@elta.co.il \
    --cc=emacs-devel@gnu.org \
    --cc=karl@freefriends.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.
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).