unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled
@ 2010-03-29  0:35 Randal L. Schwartz
  2010-04-06 15:48 ` Chong Yidong
  0 siblings, 1 reply; 7+ messages in thread
From: Randal L. Schwartz @ 2010-03-29  0:35 UTC (permalink / raw)
  To: bug-gnu-emacs

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







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

* bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled
  2010-03-29  0:35 bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled Randal L. Schwartz
@ 2010-04-06 15:48 ` Chong Yidong
  2010-04-06 15:53   ` Randal L. Schwartz
  0 siblings, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2010-04-06 15:48 UTC (permalink / raw)
  To: Randal L. Schwartz; +Cc: 5792

> 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'?






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

* bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled
  2010-04-06 15:48 ` Chong Yidong
@ 2010-04-06 15:53   ` Randal L. Schwartz
  2010-04-06 16:57     ` Chong Yidong
  0 siblings, 1 reply; 7+ messages in thread
From: Randal L. Schwartz @ 2010-04-06 15:53 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 5792

>>>>> "Chong" == Chong Yidong <cyd@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@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






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

* bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled
  2010-04-06 15:53   ` Randal L. Schwartz
@ 2010-04-06 16:57     ` Chong Yidong
  2010-04-06 17:04       ` Randal L. Schwartz
  0 siblings, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2010-04-06 16:57 UTC (permalink / raw)
  To: Randal L. Schwartz; +Cc: 5792

merlyn@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.






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

* bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled
  2010-04-06 16:57     ` Chong Yidong
@ 2010-04-06 17:04       ` Randal L. Schwartz
  2010-04-06 18:26         ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Randal L. Schwartz @ 2010-04-06 17:04 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 5792

>>>>> "Chong" == Chong Yidong <cyd@stupidchicken.com> writes:

Chong> merlyn@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@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






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

* bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled
  2010-04-06 17:04       ` Randal L. Schwartz
@ 2010-04-06 18:26         ` Eli Zaretskii
  2010-04-06 18:38           ` Randal L. Schwartz
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2010-04-06 18:26 UTC (permalink / raw)
  To: Randal L. Schwartz; +Cc: cyd, 5792

> From: merlyn@stonehenge.com (Randal L. Schwartz)
> Date: Tue, 06 Apr 2010 10:04:55 -0700
> Cc: 5792@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?






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

* bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled
  2010-04-06 18:26         ` Eli Zaretskii
@ 2010-04-06 18:38           ` Randal L. Schwartz
  0 siblings, 0 replies; 7+ messages in thread
From: Randal L. Schwartz @ 2010-04-06 18:38 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, 5792

>>>>> "Eli" == Eli Zaretskii <eliz@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@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






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

end of thread, other threads:[~2010-04-06 18:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29  0:35 bug#5792: 23.1; man.el{,c} fails to load when utf-8 mode enabled Randal L. Schwartz
2010-04-06 15:48 ` Chong Yidong
2010-04-06 15:53   ` Randal L. Schwartz
2010-04-06 16:57     ` Chong Yidong
2010-04-06 17:04       ` Randal L. Schwartz
2010-04-06 18:26         ` Eli Zaretskii
2010-04-06 18:38           ` Randal L. Schwartz

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