Eli Zaretskii
7371fe0a09
(encode_coding_sjis_big5): Enclose bitwise AND in
...
parens, to ensure correct evaluation order.
2002-05-10 08:51:44 +00:00
Kenichi Handa
15d143f758
(coding_set_source): Delete the local variable beg_byte.
...
(encode_coding_charset): Delete the local variable charset.
(Fdefine_coding_system_internal): Likewise.
(Fdefine_coding_system_internal): Setup
attrs[coding_attr_charset_valids] correctly.
2002-05-10 03:56:05 +00:00
Dave Love
b74e4686d5
(coding_inherit_eol_type)
...
(Fset_terminal_coding_system_internal)
(Fset_safe_terminal_coding_system_internal): Fix arg declarations.
2002-05-09 18:00:40 +00:00
Kenichi Handa
4eb6d3f120
(decode_coding_charset, encode_coding_charset): Handle
...
multiple charsets correctly.
2002-05-08 04:19:41 +00:00
Kenichi Handa
2c78b7e182
(coding_alloc_by_making_gap): Check the case that the
...
source and destination are the same correctly.
(decode_coding_raw_text): Set coding->consumed_char and
coding->consumed to 0.
(produce_chars): If coding->chars_at_source is nonzero, update
coding->consumed_char and coding->consumed before calling
alloc_destination.
(Fdefine_coding_system_alias): Register ALIAS in
Vcoding_system_alist.
(syms_of_coding): Define `no-convesion' coding system at the tail.
2002-05-07 04:50:48 +00:00
Richard M. Stallman
3fd9494be4
(run_pre_post_conversion_on_str):
...
Don't call temp_output_buffer_setup--do just part, by hand.
2002-04-13 17:49:00 +00:00
Andreas Schwab
ff955d9000
(syms_of_coding) <file-coding-system-alist>: Doc fix
2002-03-11 19:22:07 +00:00
Kenichi Handa
71c8142642
(produce_chars): Set the variable `multibytep' correctly.
...
(decode_coding_gap): Set coding->dst_multibyte correctly.
2002-03-11 11:28:41 +00:00
Kenichi Handa
e19c3639af
(encode_coding_utf_8): Initialize produced_chars to 0.
...
(decode_coding_utf_16): Fix converting high and low bytes to
code-point.
(encode_coding_utf_16): Substitute coding->default_char for
non-Unicode characters.
(decode_coding): Don't call record_insert here.
(setup_coding_system): Initialize `surrogate' of
coding->spec.utf_16 to 0.
(EMIT_ONE_BYTE): Fix for multibyte case.
2002-03-08 00:19:39 +00:00
Kenichi Handa
0be8721c15
* coding.c: Delete unused variables.
2002-03-05 00:08:50 +00:00
Kenichi Handa
df7492f970
Completely re-written.
2002-03-01 01:17:24 +00:00
Richard M. Stallman
b1887814c3
(decode_composition_emacs_mule):
...
Give up if NCOMPONENT gets too large to index `component'.
2002-02-01 04:34:21 +00:00
Richard M. Stallman
72d1a715ee
(code_convert_region): Don't copy old text if undo disabled.
2002-01-11 21:27:54 +00:00
Richard M. Stallman
0e79d66738
(code_convert_region): Update coding->cmp_data->char_offset
...
before calling decode_coding.
2001-12-17 15:33:32 +00:00
Sam Steingold
93dec0196b
(DECODE_COMPOSITION_END): Fixed a typo in the last
...
patch (COMPOSING_P, not COMPOSING).
2001-12-17 15:21:06 +00:00
Richard M. Stallman
c8446041d5
(DECODE_COMPOSITION_END): Check for ! COMPOSING (coding)
...
instead of only for COMPOSITION_DISABLED.
2001-12-17 14:05:07 +00:00
Pavel Janík
8732329486
(setup_coding_system, shrink_encoding_region)
...
(Fdecode_sjis_char): Likewise.
2001-12-09 00:56:24 +00:00
Dave Love
0192762cef
(syms_of_coding) <Qchar_coding_system>: Give it an
...
extra extra slot.
(detect_coding_mask): Fix call of detect_coding_iso2022.
2001-11-29 12:54:12 +00:00
Pavel Janík
55b43a6305
(decode_coding_string): Remove unused variable `gcpro1'.
2001-11-28 07:36:46 +00:00
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