[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error in latest CVS version of fileio.c
From: |
David Ponce |
Subject: |
Error in latest CVS version of fileio.c |
Date: |
Tue, 04 Jun 2002 20:25:46 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0+) Gecko/20020602 |
Hi,
I found a bug in the latest CVS version of fileio.c. There is a
mismatch between the following call in fileio.c:
val = call4 (Vselect_safe_coding_system_function,
start, end, val, filename);
And the `select-safe-coding-system' declaration in
international/mule-cmds.el:
(select-safe-coding-system FROM TO &optional DEFAULT-CODING-SYSTEM
ACCEPT-DEFAULT-P FILE)
So make bootstrap failed to make leim with an "Invalid function" error
in `miscdic-convert' because `select-safe-coding-system' received a
filename as the ACCEPT-DEFAULT-P parameter (a function).
The following patch solved the problem:
*** fileio.c.ori Tue Jun 4 08:07:13 2002
--- fileio.c Tue Jun 4 13:55:55 2002
***************
*** 4674,4681 ****
if (!force_raw_text
&& !NILP (Ffboundp (Vselect_safe_coding_system_function)))
/* Confirm that VAL can surely encode the current region. */
! val = call4 (Vselect_safe_coding_system_function,
! start, end, val, filename);
setup_coding_system (Fcheck_coding_system (val), coding);
if (coding->eol_type == CODING_EOL_UNDECIDED
--- 4674,4681 ----
if (!force_raw_text
&& !NILP (Ffboundp (Vselect_safe_coding_system_function)))
/* Confirm that VAL can surely encode the current region. */
! val = call5 (Vselect_safe_coding_system_function,
! start, end, val, Qnil, filename);
setup_coding_system (Fcheck_coding_system (val), coding);
if (coding->eol_type == CODING_EOL_UNDECIDED
Sincerely,
David
- Error in latest CVS version of fileio.c,
David Ponce <=