[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
uncompress vs. write-file
From: |
Devon Sean McCullough |
Subject: |
uncompress vs. write-file |
Date: |
Mon, 23 Dec 2002 21:18:17 -0500 (EST) |
In GNU Emacs 21.1.1 (i386--freebsd, X toolkit, Xaw3d scroll bars)
of 2001-10-30 on grant.org
configured using `configure --prefix=/usr/local i386--freebsd'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
With "uncompress" loaded, when writing a buffer to a file name ending
in ".gz" the buffer is uncompressed before writing. This is wrong
because the command typed by the user explicitly specifies
writing "bar.gz" but instead "bar" was written. In this
example, the contents of the buffer were not written
and "gunzip: stdin: not in gzip format" was written
to the file instead. This makes no sense.
ls -alt foo* bar*
-rw-rw---- 1 devon devon 35 Dec 23 21:04 bar
-rw-r--r-- 1 devon devon 198 Dec 23 21:03 foo.gz
Recent input:
f o o SPC b a r C-x C-w f o o . g z TAB RET
ESC x l o a d SPC l i SPC RET
u n c o m p r e s s RET
C-x b b a r . g z RET
a n o t h e r SPC t e s t
C-x C-w b a r . g z RET
ESC x r e p o r t SPC e m SPC b SPC RET
Recent messages:
(emacs -q)
For information about the GNU Project and its goals, type C-h C-p.
Wrote /home1/devon/foo.gz
Loading uncompress...done
Uncompressing...done
Wrote /home1/devon/bar
Loading emacsbug...done
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- uncompress vs. write-file,
Devon Sean McCullough <=