GNU bug report logs -
#5792
23.1; man.el{,c} fails to load when utf-8 mode enabled
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5792 in the body.
You can then email your comments to 5792 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5792
; Package
emacs
.
(Mon, 29 Mar 2010 00:44:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Randal L. Schwartz" <merlyn <at> stonehenge.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 29 Mar 2010 00:44:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In my .emacs, I have:
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
When I invoke M-x man, I get an invalid byte when trying to load
either the man.el or the man.elc.
Workaround is to (load "man") before turning on utf-8 mode.
In GNU Emacs 23.1.1 (amd64-portbld-freebsd8.0)
of 2010-03-28 on red.stonehenge.com
configured using `configure '--with-x=no' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd8.0' 'build_alias=amd64-portbld-freebsd8.0' 'CC=cc' 'CFLAGS=-O2 -pipe -fno-strict-aliasing''
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
value of $XMODIFIERS: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: IRC
Minor modes in effect:
auto-fill-function: do-auto-fill
shell-dirtrack-mode: t
display-time-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-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:
o C-v C-n C-n C-n C-f C-f C-f C-x o C-h t q C-x k RET
y C-x RET k RET q C-x RET k TAB a s c i TAB i q ESC
x s e t - v e r RET q ESC x s e t - v a r RET d e b
u g - o n - e r r o r RET n i l RET ESC x s e t C-g
C-x 4 b RET ESC < C-n C-n C-f C-f C-f C-f C-f C-f C-f
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f
C-x C-e q C-x C-b C-x o C-a C-n C-n C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n d d d d x C-n d d d
d x C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p d x
C-p C-p C-p C-p C-n C-n f C-x h ESC x e v a l - b u
f RET C-x k RET ESC x m a n RET C-g d x C-p v o k SPC
- SPC s o l v e SPC DEL d SPC m y SPC f a c e SPC p
r o b l e m SPC a n d SPC m y SPC M - X SPC m a DEL
DEL DEL DEL x SPC m a n SPC p r o b l e DEL DEL l e
m SPC a s DEL DEL h a s SPC a SPC w o r k a r o u d
n RET C-p DEL C-p C-p C-p C-p C-p C-p C-p ESC x m a
DEL x DEL DEL r e p o r TAB e m TAB RET
Recent messages:
Entering debugger...
Back to top level.
Entering debugger...
Back to top level.
Quit
Mark set
Loading man...
Entering debugger...
Back to top level.
Mark set [2 times]
Quit
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5792
; Package
emacs
.
(Tue, 06 Apr 2010 15:49:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5792 <at> debbugs.gnu.org (full text, mbox):
> In my .emacs, I have:
>
> (set-terminal-coding-system 'utf-8)
> (set-keyboard-coding-system 'utf-8)
>
> When I invoke M-x man, I get an invalid byte when trying to load
> either the man.el or the man.elc.
Thanks for the bug report, but it's took vague for me to reproduce; for
instance, what do you mean by "get an invalid byte"? Could you provide
a testcase starting from `emacs -Q'?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5792
; Package
emacs
.
(Tue, 06 Apr 2010 15:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 5792 <at> debbugs.gnu.org (full text, mbox):
>>>>> "Chong" == Chong Yidong <cyd <at> stupidchicken.com> writes:
>> In my .emacs, I have:
>>
>> (set-terminal-coding-system 'utf-8)
>> (set-keyboard-coding-system 'utf-8)
>>
>> When I invoke M-x man, I get an invalid byte when trying to load
>> either the man.el or the man.elc.
Chong> Thanks for the bug report, but it's took vague for me to reproduce; for
Chong> instance, what do you mean by "get an invalid byte"? Could you provide
Chong> a testcase starting from `emacs -Q'?
I imagine it'd be something like
emacs -Q
M-: (set-terminal-coding-system 'utf-8) RET
M-: (set-keyboard-coding-system 'utf-8) RET
M-: (load-library "man) RET
which will blow up while trying to read the "man" library. There's
something both the man.el and man.elc versions that is *not* utf-8
encoded, probably just latin1.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5792
; Package
emacs
.
(Tue, 06 Apr 2010 16:58:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 5792 <at> debbugs.gnu.org (full text, mbox):
merlyn <at> stonehenge.com (Randal L. Schwartz) writes:
> Chong> Thanks for the bug report, but it's took vague for me to reproduce; for
> Chong> instance, what do you mean by "get an invalid byte"? Could you provide
> Chong> a testcase starting from `emacs -Q'?
>
> I imagine it'd be something like
>
> emacs -Q
>
> M-: (set-terminal-coding-system 'utf-8) RET
> M-: (set-keyboard-coding-system 'utf-8) RET
> M-: (load-library "man") RET
>
> which will blow up while trying to read the "man" library.
I don't see any error; man is loaded fine.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5792
; Package
emacs
.
(Tue, 06 Apr 2010 17:06:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 5792 <at> debbugs.gnu.org (full text, mbox):
>>>>> "Chong" == Chong Yidong <cyd <at> stupidchicken.com> writes:
Chong> merlyn <at> stonehenge.com (Randal L. Schwartz) writes:
Chong> Thanks for the bug report, but it's took vague for me to reproduce; for
Chong> instance, what do you mean by "get an invalid byte"? Could you provide
Chong> a testcase starting from `emacs -Q'?
>>
>> I imagine it'd be something like
>>
>> emacs -Q
>>
>> M-: (set-terminal-coding-system 'utf-8) RET
>> M-: (set-keyboard-coding-system 'utf-8) RET
>> M-: (load-library "man") RET
>>
>> which will blow up while trying to read the "man" library.
Chong> I don't see any error; man is loaded fine.
Yup, same here. So it's something more complex than this.
All I know is that in my .emacs, if I had this:
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(load-library "man")
it'd blow up.
But if I instead moved the load first:
(load-library "man")
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
it worked ok.
I don't know how to simulate that from emacs -Q.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5792
; Package
emacs
.
(Tue, 06 Apr 2010 18:27:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 5792 <at> debbugs.gnu.org (full text, mbox):
> From: merlyn <at> stonehenge.com (Randal L. Schwartz)
> Date: Tue, 06 Apr 2010 10:04:55 -0700
> Cc: 5792 <at> debbugs.gnu.org
>
> All I know is that in my .emacs, if I had this:
>
> (set-terminal-coding-system 'utf-8)
> (set-keyboard-coding-system 'utf-8)
> (load-library "man")
>
> it'd blow up.
I don't see how setting terminal and keyboard encoding could affect
loading a Lisp file. These settings are relevant only to keyboard
input and terminal output.
Could you perhaps bisect your .emacs to find out what else is needed
to reproduce this problem?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5792
; Package
emacs
.
(Tue, 06 Apr 2010 18:39:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 5792 <at> debbugs.gnu.org (full text, mbox):
>>>>> "Eli" == Eli Zaretskii <eliz <at> gnu.org> writes:
Eli> Could you perhaps bisect your .emacs to find out what else is needed
Eli> to reproduce this problem?
Got it. It was an old man.elc in my private .elib compiled before
utf8 probably even existed. :)
Sorry for the misinform. Thanks.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
bug closed, send any further explanations to "Randal L. Schwartz" <merlyn <at> stonehenge.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Tue, 06 Apr 2010 19:19:01 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
.
(Wed, 05 May 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.