Richard M. Stallman
7520597013
(syms_of_coding): Doc fix.
2001-11-14 00:04:57 +00:00
Pavel Janík
ddb67bdc78
Doc fix.
2001-11-13 11:56:24 +00:00
Pavel Janík
fabf4a91cf
(encode_coding): Use precomputed value of `src'.
...
(encode_coding): Remove unused variable `src_end'.
(code_convert_region): Remove unused variables `count'.
2001-11-09 08:02:08 +00:00
Pavel Janík
48b0f3aed7
Change doc-string comments to new style' [w/
doc:' keyword].
2001-11-04 17:43:52 +00:00
Pavel Janík
b782650360
Update usage of CHECK_ macros (remove unused second argument).
2001-11-02 20:46:55 +00:00
Eli Zaretskii
9048000044
(syms_of_coding): Document that locale-coding-system is
...
used for decoding input on X.
2001-10-29 19:37:06 +00:00
Miles Bader
a58d71cbdd
(Ffind_operation_coding_system): Add usage: string to doc string.
2001-10-21 15:20:20 +00:00
Ken Raeburn
f3fbd15535
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
...
with lisp system changes.
2001-10-16 09:09:51 +00:00
Gerd Moellmann
f5c1dd0dc5
Use SYMBOL_VALUE/SET_SYMBOL_VALUE macros instead of accessing
...
symbols' value directly.
2001-10-05 09:49:39 +00:00
Gerd Moellmann
70ad9fc448
(code_convert_region): Handle the multibyte case if
...
decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
2001-07-23 09:26:46 +00:00
Ken Raeburn
928a85c1ba
* coding.c (setup_coding_system): Don't do any designation based on reg_bits if
...
charset is not yet defined.
2001-07-17 16:29:39 +00:00
Stefan Monnier
176c92e68f
(Ffind_coding_systems_region_internal): If safe_codings
...
is t, don't try to append anything to it.
2001-07-12 20:28:45 +00:00
Dave Love
ae5145c238
comment
2001-04-05 21:15:02 +00:00
Kenichi Handa
c210f766a0
(Fdetect_coding_region): Fix comments added by the previous change.
2001-03-08 04:42:43 +00:00
Kenichi Handa
67091e5974
(detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
2001-03-08 02:19:18 +00:00
Kenichi Handa
682169fe7f
(detect_coding_sjis): Do more rigid check.
...
(detect_coding_big5): Likewise.
(decode_coding_sjis_big5): Likewise.
(Fdetect_coding_region): Call detect_coding_system with tailing
anchor byte `\0' for more rigid detection.
(Fdetect_coding_string): Likewise.
2001-03-08 02:01:00 +00:00
Kenichi Handa
2f4b4b44cf
(syms_of_coding): Docstring modified.
2001-03-05 06:40:18 +00:00
Kenichi Handa
ade8d05eff
(ccl_coding_driver): If ccl->eight_bit_control is zero,
...
treat the produced bytes as a valid multibyte sequence.
2001-02-27 03:27:20 +00:00
Dave Love
8ca3766acc
Doc and message fixes.
2001-02-14 23:50:05 +00:00
Kenichi Handa
d280ccb69e
(code_convert_region): After detecting a coding, if
...
nothing found, set coding->composing to COMPOSITION_NO.
(decode_coding_string): Likewise.
2001-02-08 23:29:44 +00:00
Kenichi Handa
8844fa83d3
(decode_coding): Set a flag for inhibiting
...
inconsistent eol.
(code_convert_region): Always set saved_coding_symbol.
(decode_coding_string): Likewise. Update coding->symbol when we
encounter a inconsistent eol by the same way as
code_convert_region.
2001-01-26 06:10:21 +00:00
Kenichi Handa
bd64290dac
(ccl_coding_driver): Setup ccl->suppress_error.
...
(Fset_terminal_coding_system_internal): Set the member
suppress_error to 1.
(Fset_safe_terminal_coding_system_internal): Likewise.
2001-01-24 23:30:34 +00:00
Dave Love
cfb43547a4
Commentary changes.
...
(detect_eol_type_in_2_octet_form): Declare arg big_endian_p.
2001-01-04 17:35:26 +00:00
Eli Zaretskii
da55a2b79a
(detect_coding_iso2022, setup_coding_system): Remove
...
unused variable `i'.
(detect_coding_mask): Remove unused variable `idx'.
(detect_coding): Remove unused variable `i'.
(ccl_coding_driver): Remove unused variable `result'.
(run_pre_post_conversion_on_str): Remove unused variable `prev'.
(decode_coding_string): Remove unused variables `to' and
`gcpro1'.
(encode_coding_string): Remove unused variables `gcpro1' and
`saved_coding_symbol'.
(Ffind_coding_systems_region_internal): Remove function-local
variable args[], leave only the block-local one.
(code_convert_region1): Remove unused variable `len'.
2001-01-02 14:26:22 +00:00
Kenichi Handa
1c3478b085
(setup_coding_system): Initialize
...
coding->spec.ccl.eight_bit_carryover.
(ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2000-12-28 07:03:56 +00:00
Kenichi Handa
aa72b389be
(SAFE_ONE_MORE_BYTE): New macro.
...
(DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
(DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
(decode_composition_emacs_mule): New function.
(decode_coding_emacs_mule): Decode composition sequence by calling
decode_composition_emacs_mule.
(ENCODE_COMPOSITION_EMACS_MULE): New macro.
(encode_coding_emacs_mule): Changed from macro to function. If
a text contains compostions, encode them correctly.
(setup_coding_system): Set coding->commong_flags for emacs-mule so
that decoding and encoding are required.
2000-12-28 01:05:02 +00:00
Kenichi Handa
80e0ca99ce
(ccl_coding_driver): Initialize ccl->cr_consumed.
2000-12-21 23:22:16 +00:00
Kenichi Handa
64c1e55fbe
(detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
...
argument.
(code_convert_region): Don't override coding->src_multibyte and
coding->dst_multibyte.
2000-12-15 08:30:40 +00:00
Kenichi Handa
c07c8e12b4
(setup_coding_system): Clear all members of the struct
...
coding_system at first.
2000-12-15 04:45:53 +00:00
Kenichi Handa
764ca8dad8
(decode_coding_string): Set coding->src_multibyte and
...
coding->dst_multibyte before calling detect_coding and detect_eol.
Update them after some coding system is detected.
2000-12-14 01:27:43 +00:00
Kenichi Handa
0a28aafbbc
(ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
...
(detect_coding_emacs_mule, detect_coding_iso2022,)
(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
(detect_coding_utf_16, detect_coding_ccl): Make them static. New
argument MULTIBYTEP. Callers changed.
(detect_coding_mask, detect_coding_system): New argument
MULTIBYTEP. Callers changed.
2000-12-13 23:24:37 +00:00
Kenichi Handa
9b96232f57
(setup_coding_system): Be sure to initialize coding->category_idx.
2000-12-05 12:34:56 +00:00
Kenichi Handa
109a5acb02
(Ffind_coding_systems_region_internal): Be sure to
...
include no-conversion.
2000-11-28 00:00:00 +00:00
Eli Zaretskii
2bcdf6628b
(decode_coding_emacs_mule): Fix the case of
...
CODING_EOL_LF, which used an uninitialized value of c.
2000-11-23 20:37:45 +00:00
Kenichi Handa
e7c9eef9a6
(decode_coding): Fix previous change (check also
...
CODING_MODE_LAST_BLOCK).
2000-10-26 01:22:29 +00:00
Eli Zaretskii
4af310dbf1
(decode_coding_emacs_mule): If coding->eol_type is CR
...
or CRLF, decode EOLs.
2000-10-24 09:04:35 +00:00
Eli Zaretskii
d9aef30f82
Fix a typo in a comment.
2000-10-22 14:00:19 +00:00
Kenichi Handa
e2c06b17a9
(decode_coding_string): Set coding->src_multibyte and
...
coding->dst_multibyte before using CODING_REQUIRE_DECODING.
(encode_coding_string): Set coding->src_multibyte and
coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
2000-10-13 08:21:20 +00:00
Kenichi Handa
62b3ef1d94
(code_convert_region): Be sure to initialize coding->category_idx.
2000-10-13 08:01:24 +00:00
Kenichi Handa
fd6f711b51
(detect_coding_sjis): Check the byte sequence more regidly.
2000-09-07 13:01:44 +00:00
Kenichi Handa
fc53a2147a
(encode_coding_sjis_big5): Fix previous change.
2000-09-07 12:41:37 +00:00
Kenichi Handa
39658efc40
(encode_coding_sjis_big5): Use translation table for
...
encoding, not decoding. Check for the charset katakana-jisx0201,
not latin-jisx0201.
(ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
2000-09-07 12:04:09 +00:00
Kenichi Handa
78a629d2f5
(encode_eol): Fix bug for the case of dst_bytes being zero. Set
...
coding->produced_char correctly.
2000-08-23 02:47:42 +00:00
Kenichi Handa
13004bef1e
(encode_coding_string): Fix previous change.
2000-08-18 10:48:26 +00:00
Kenichi Handa
2391eaa401
(decode_coding_string): Set members consumed,
...
consumed_char, produced, produced_char of *coding correctly. If
decode_coding doesn't consume any byte, don't try anymore.
(encode_coding_string): Likewise.
2000-08-18 06:41:15 +00:00
Kenichi Handa
bb10be8b6f
(encode_coding): Fix the bug of not flushing ISO escape sequence at
...
the end of the source block.
2000-08-16 11:19:34 +00:00
Kenichi Handa
73be902c32
(MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
...
(conversion_buffer, conversion_buffer_size): Variables deleted.
(get_conversion_buffer): Function deleted.
(struct conversion_buffer): New structure.
(MAX_ALLOCA): New macro.
(allocate_conversion_buffer): New macro.
(extend_conversion_buffer, free_conversion_buffer): New functions.
(ccl_coding_driver): Set coding->result.
(decode_coding): Set coding->result to CODING_FINISH_NORMAL if
this is the last block of source.
(encode_coding): Likewise. Handle the source block as the last
one only when the whole source text is consumed.
(decode_coding_string): Handle the case that the output buffer is
too small to decode the whole source text. Use
allocate_conversion_buffer, extend_conversion_buffer and
free_conversion_buffer, not get_conversion_buffer.
(encode_coding_string): Likewise.
(init_coding): Function deleted.
(init_coding_once): Delete code to initialize
conversion_buffer_size.
2000-08-16 01:37:20 +00:00
Kenichi Handa
7272d75c04
(ccl_coding_driver): Initialize ccl->multibyte.
2000-08-11 05:45:37 +00:00
Ken Raeburn
975f250a8e
*coding.c (find_safe_codings): CHAR_TABLE_SET index must be a lisp object.
...
(Ffind_coding_systems_region_internal): First argument to Fappend must be an
integer, not a lisp object.
2000-08-08 14:34:05 +00:00
Kenichi Handa
78108bcdcc
(coding_restore_composition): Pay attention to the case that
...
cmp_data is not set properly (because of invalid code in the
source text).
(run_pre_post_conversion_on_str): Include text properties in the
resulting string.
(decode_coding_string): Set members of coding correctly.
2000-08-04 05:53:01 +00:00