GNU bug report logs -
#3822
23.1.50; can't search 8-bit byte on unibyte buffer
Previous Next
Reported by: Taiki SUGAWARA <buzz.taiki <at> gmail.com>
Date: Sat, 11 Jul 2009 15:40:04 UTC
Severity: normal
Tags: fixed
Fixed in version 24.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.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 3822 in the body.
You can then email your comments to 3822 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3822
; Package
emacs
.
(Sat, 11 Jul 2009 15:40:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Taiki SUGAWARA <buzz.taiki <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 11 Jul 2009 15:40:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
I wrote code for search 8-bit byte on unibyte buffer like a
followings. but emacs says `search failed'. It's a bug?
(with-temp-buffer
(set-buffer-multibyte nil)
(insert (make-string 1 ?\xff))
(goto-char (point-min))
(search-forward (make-string 1 ?\xff)))
In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.16.1)
of 2009-07-08 on pastel
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure '--prefix=/opt/emacs23''
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: ja_JP.UTF-8
value of $XMODIFIERS: @im=uim
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-e q <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> M-x e m a c s C-g M-h v C-g
C-/ <f1> v s m t p <tab> C-g M-x a p r o SPC [ s <backspace>
<backspace> <return> s m t p <return> M-x s e n d C-g
M-x a p r o SPC <return> b u g s <return> M-x a M-p
RET b u g <return> C-x o C-n C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-v C-v C-s s e n d RET C-x o M-x s
e n d SPC e m a SPC C-a C-k s e n d - <tab> <tab> C-a
C-k C-g C-x o C-s s e n d C-s C-s C-a C-x o M-x e m
a c s <tab> <tab> C-g M-x r e p o r SPC e m a SPC SPC
<return> c a n ' t SPC s e a r c h SPC b y t e SPC
o n SPC u n i b y t e SPC b u f f e r RET C-p C-n C-x
1 <next> <up> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <next> <next>
<prior> <prior> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> M-x M-p C-g C-n <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <down> <down>
<down> <down> <down> <down> C-x k RET C-n C-n C-n C-x
C-v RET C-n C-n C-n C-n C-e C-x C-e q M-m <down-mouse-1>
<mouse-1> M-x r e p o <tab> r <tab> <return>
Recent messages:
Mark saved where search started
Quit
Making completion list...
Quit
call-interactively: End of buffer
Quit
Auto-saving...
Entering debugger...
Back to top level.
Making completion list...
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3822
; Package
emacs
.
(Sat, 17 Sep 2011 06:57:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 3822 <at> debbugs.gnu.org (full text, mbox):
Taiki SUGAWARA <buzz.taiki <at> gmail.com> writes:
> I wrote code for search 8-bit byte on unibyte buffer like a
> followings. but emacs says `search failed'. It's a bug?
>
> (with-temp-buffer
> (set-buffer-multibyte nil)
> (insert (make-string 1 ?\xff))
> (goto-char (point-min))
> (search-forward (make-string 1 ?\xff)))
It seems somewhat odd, at least. However, it probably isn't a bug. The
`insert' will insert the 0xff byte into the buffer, but
`(make-string 1 ?\xff)' will create a multibyte string, which will, of
course, not be found in the buffer.
I think.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3822
; Package
emacs
.
(Sat, 17 Sep 2011 07:27:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 3822 <at> debbugs.gnu.org (full text, mbox):
This is the same as #9458 which is already fixed.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3822
; Package
emacs
.
(Sat, 17 Sep 2011 07:34:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 3822 <at> debbugs.gnu.org (full text, mbox):
Andreas Schwab <schwab <at> linux-m68k.org> writes:
> This is the same as #9458 which is already fixed.
But the fix isn't on the trunk yet, I guess?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#3822
; Package
emacs
.
(Sun, 18 Sep 2011 15:27:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 3822 <at> debbugs.gnu.org (full text, mbox):
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
> Andreas Schwab <schwab <at> linux-m68k.org> writes:
>
>> This is the same as #9458 which is already fixed.
>
> But the fix isn't on the trunk yet, I guess?
I just merged it in.
Added tag(s) fixed.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Sep 2011 18:39:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.1, send any further explanations to
3822 <at> debbugs.gnu.org and Taiki SUGAWARA <buzz.taiki <at> gmail.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Sep 2011 18:39:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 17 Oct 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.