| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
| |
Fdefine_coding_system_internal.
(Fdefine_coding_system_internal): For a coding system of
`charset' type, store a list of charset IDs in
`charset_attr_charset_valids' element of coding attributes.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(emacs_mule_char): New arg src. Delete arg `composition'. Caller
changed. Handle 2-byte and 3-byte charsets correctly.
(DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from
DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed.
(DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
(DECODE_EMACS_MULE_21_COMPOSITION): Call
DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
sequence.
(decode_coding_emacs_mule): Handle composition correctly. Rewind
`src' and `consumed_chars' correctly before calling
emacs_mule_char.
(DECODE_COMPOSITION_START): Correctly handle the case of altchar
and alt&rule composition.
(decode_coding_iso_2022): Handle composition correctly.
(init_coding_once): Setup emacs_mule_bytes for private charsets.
|
| |
|
|
|
|
|
|
| |
encoding, produce a character specified by
CODING_INHIBIT_CHARACTER_SUBSTITUTION.
(encode_coding_sjis): Likewise.
(encode_coding_big5): Likewise.
(encode_coding_charset): Likewise.
|
| |
|
|
|
|
| |
Removed.
(Fset_coding_system_priority, Fset_coding_system_priority)
(Fdefine_coding_system_internal): Doc fix.
|
| |
|
|
|
|
|
|
| |
pre-write-conversion. Ignore the return value of
pre-write-conversion function. Pay attention for the case that
pre-write-conversion change the current buffer. If dst_object is
Qt, even if coding->src_bytes is zero, allocate at least one byte
to coding->destination.
|
| |
|
|
| |
calling post-read-conversion function.
|
| |
|
|
|
| |
handling of charset list.
(encode_coding_iso_2022): Setup coding->safe_charsets in advance.
|
| |
|
|
|
| |
(Fdefine_coding_system_alias): Use names, not symbols, in
coding-system-alist.
|
| |
|
|
|
|
|
| |
(encode_coding_charset): Delete the local variable charset.
(Fdefine_coding_system_internal): Likewise.
(Fdefine_coding_system_internal): Setup
attrs[coding_attr_charset_valids] correctly.
|
| |
|
|
|
| |
(Fset_terminal_coding_system_internal)
(Fset_safe_terminal_coding_system_internal): Fix arg declarations.
|
| |
|
|
| |
multiple charsets correctly.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
(decode_coding_gap): Set coding->dst_multibyte correctly.
|
| |
|
|
|
|
|
|
|
|
|
| |
(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.
|
| | |
|
| | |
|
| |
|
|
| |
Give up if NCOMPONENT gets too large to index `component'.
|
| | |
|
| |
|
|
| |
before calling decode_coding.
|
| |
|
|
| |
patch (COMPOSING_P, not COMPOSING).
|
| |
|
|
| |
instead of only for COMPOSITION_DISABLED.
|
| |
|
|
| |
(Fdecode_sjis_char): Likewise.
|
| |
|
|
|
| |
extra extra slot.
(detect_coding_mask): Fix call of detect_coding_iso2022.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
(encode_coding): Remove unused variable `src_end'.
(code_convert_region): Remove unused variables `count'.
|
| | |
|
| | |
|
| |
|
|
| |
used for decoding input on X.
|
| | |
|
| |
|
|
| |
with lisp system changes.
|
| |
|
|
| |
symbols' value directly.
|
| |
|
|
| |
decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
|
| |
|
|
| |
charset is not yet defined.
|
| |
|
|
| |
is t, don't try to append anything to it.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
(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.
|
| | |
|
| |
|
|
| |
treat the produced bytes as a valid multibyte sequence.
|
| | |
|
| |
|
|
|
| |
nothing found, set coding->composing to COMPOSITION_NO.
(decode_coding_string): Likewise.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
(Fset_terminal_coding_system_internal): Set the member
suppress_error to 1.
(Fset_safe_terminal_coding_system_internal): Likewise.
|
| |
|
|
| |
(detect_eol_type_in_2_octet_form): Declare arg big_endian_p.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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'.
|