GNU bug report logs -
#32791
26.1; rgrep uses null byte instead of colon separator
Previous Next
Reported by: Allen Li <darkfeline <at> felesatra.moe>
Date: Fri, 21 Sep 2018 00:42:01 UTC
Severity: normal
Found in version 26.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32791 in the body.
You can then email your comments to 32791 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32791
; Package
emacs
.
(Fri, 21 Sep 2018 00:42:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Allen Li <darkfeline <at> felesatra.moe>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 21 Sep 2018 00:42:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Reproduce:
1. mkdir -p /tmp/tmp
2. echo foo >/tmp/tmp/tmp
1. emacs -Q
2. M-x rgrep RET foo RET * RET /tmp/tmp RET
3. Move point onto the first colon in ./tmp:1:foo
and press C-u C-x =
3. Move point onto the first colon in ./tmp:1:foo
and press C-u C-x =
For the commands that actually run grep, like M-x grep, both of these
colons are actually colons. For rgrep (and I would guess the other
commands implemented in Emacs Lisp), the first colon is a NUL byte
displayed as a colon.
This breaks wgrep.el for rgrep, which parses for the two colons in each
line.
In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
of 2018-07-05 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12001000
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
-fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32791
; Package
emacs
.
(Fri, 21 Sep 2018 00:51:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 32791 <at> debbugs.gnu.org (full text, mbox):
After doing a bit more research, I realized that grep using a null
byte separator is intended behavior.
I'll file a separate bug upstream for wgrep.el. I'm not sure if there
are some improvements that could be made to grep-mode to facilitate
use cases such as wgrep.el, but I think this bug can be closed now.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Fri, 21 Sep 2018 07:00:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Allen Li <darkfeline <at> felesatra.moe>
:
bug acknowledged by developer.
(Fri, 21 Sep 2018 07:00:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 32791-done <at> debbugs.gnu.org (full text, mbox):
> From: Allen Li <darkfeline <at> felesatra.moe>
> Date: Thu, 20 Sep 2018 17:49:52 -0700
>
> After doing a bit more research, I realized that grep using a null
> byte separator is intended behavior.
Right.
> I'll file a separate bug upstream for wgrep.el. I'm not sure if there
> are some improvements that could be made to grep-mode to facilitate
> use cases such as wgrep.el, but I think this bug can be closed now.
Thanks. You can always close a bug by writing to
NNNN-done <at> debbugs.gnu.org instead of just NNNN <at> debbugs.gnu.org (where
NNNN is the bug number).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#32791
; Package
emacs
.
(Fri, 21 Sep 2018 11:51:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 32791 <at> debbugs.gnu.org (full text, mbox):
Allen Li <darkfeline <at> felesatra.moe> writes:
> After doing a bit more research, I realized that grep using a null
> byte separator is intended behavior.
>
> I'll file a separate bug upstream for wgrep.el. I'm not sure if there
> are some improvements that could be made to grep-mode to facilitate
> use cases such as wgrep.el, but I think this bug can be closed now.
For the record, setting grep-use-null-filename-separator can be used to
control this.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 20 Oct 2018 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 301 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.