unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* unibyte buffers won't display latin-1 characters
@ 2002-08-24 20:52 David Kuehling
  2002-08-27  1:20 ` Kenichi Handa
  0 siblings, 1 reply; 8+ messages in thread
From: David Kuehling @ 2002-08-24 20:52 UTC (permalink / raw)


Hi,

I'm trying to edit compressed files using auto-compression-mode, which
always switches the buffer to unibyte.  Unfortunately I can't get Emacs
to display latin-1 characters in unibyte buffers, although the
documentation states that this is possible.

Here's what I did:

M-x set-variable <Ret> 
unibyte-display-via-language-environment <Ret> 
t <Ret>
M-x set-language-environment <Ret>
Latin-1 <Ret>
M-x auto-compression-mode <Ret>
C-x C-f test.txt.gz <Ret>

I then tried to enter äöü, and Emacs displayed \344\366\374.

Even if this is a small problem, the question remains, why gzipped files
are opened as unibyte.  This is extremely inconvenient.  I think that
also keeps me from reading japanese info files which are (in my Debian
Woody system) by default gzipped.  Emacs only displays them properly
when I gunzip them.

The hole problem also applys to crypt++.

Could anybody please shade some light on that topic?

David Kühling

PS: please CC, I'm not subscribed..
-- 
GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: unibyte buffers won't display latin-1 characters
@ 2002-08-29 16:28 Karl Berry
  2002-08-29 17:47 ` David Kuehling
  2002-08-30 19:18 ` Richard Stallman
  0 siblings, 2 replies; 8+ messages in thread
From: Karl Berry @ 2002-08-29 16:28 UTC (permalink / raw)
  Cc: dvdkhlng, bug-gnu-emacs

    Karl, the comment of cyrpt++.el says that you are the maintainer.   

Although I've been looking for a replacement for years :).

    Do you know how to fix this problem?

Unfortunately I do not.  Since compressed (or encrypted files) are
arbitrary binary data, I don't know any way to read them except with
'no-conversion, which I assume is what stops the translation into a
multibyte buffer.  

I got bug reports about random failures for quite a while before I
realized emacs had not maintained backward compatibility on
reading/writing files and additional settings had to be made now.  So
the 'no-conversion stuff is necessary in that respect.  When I looked at
the emacs code a while ago, it had a bunch of random heuristics about
determining whether a file was binary or some multibyte coding system,
and those heuristics were failing.  (I reported a bug about this at that
time.)

Anyway, at this point, I suggest that crypt++ not be loaded by default
and probably not be used at all.  The builtin (un)compression and
line-ending support in emacs should suffice.

Thanks,
k

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-09-03  6:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-24 20:52 unibyte buffers won't display latin-1 characters David Kuehling
2002-08-27  1:20 ` Kenichi Handa
2002-08-27 19:44   ` David Kuehling
  -- strict thread matches above, loose matches on Subject: below --
2002-08-29 16:28 Karl Berry
2002-08-29 17:47 ` David Kuehling
2002-08-30 19:18 ` Richard Stallman
2002-08-31  6:18   ` Eli Zaretskii
2002-09-03  6:23     ` Kenichi Handa

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).