| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
correctly.
(Fencode_sjis_char): Encode Japanese Katakana character correctly.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
final_char is invalid.
(decode_coding): If coding->type is coding_type_ccl, call
ccl_coding_driver even if SRC_BYTES is zero.
(code_convert_region): Update `inserted' correctly after calling
coding->post_read_conversion. Even after the code converter
consumed all source text, call it once more if it is
coding_type_ccl to flush out data.
|
| |
|
|
|
|
|
| |
code.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(DECODE_CHARACTER_DIMENSION2): Likewise.
(decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
|
| |
|
|
| |
pre-write-conversion.
|
| |
|
|
| |
point, pay attention to the byte combining problem.
|
| |
|
|
|
|
|
|
| |
coding->spec.ccl.valid_codes for CCL based coding system.
(code_convert_region): Set point to FROM before inserting the
result of pre-write-funciton. Preserve original point.
(code_convert_string): If coding->type is coding_type_ccl, do
conversion even if the length of conversion region is zero.
|
| |
|
|
| |
1 when encountered with a code of the range 0x80..0x9F.
|
| |
|
|
|
| |
is initially designated to G0, don't shrink the region.
(shrink_encoding_region): Likewise.
|
| |
|
|
| |
to 1 before calling Fset_text_properties.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table. If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
(check_composing_code): Fix previous change. Now it
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table. If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
|
| |
|
|
|
|
|
|
|
|
| |
sequence doesn't end properly, return -1.
(DECODE_CHARACTER_ASCII): Update coding->composed_chars.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(decode_coding_iso2022): Check validity of a composing sequence.
(code_convert_string): If the length of text to be converted is
shrunk to zero, don't perform code conversion.
(shrink_decoding_region): Fix previous change.
|
| |
|
|
|
|
| |
single CR code correctly.
(shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
|
| |
|
|
|
|
|
| |
user or the CCL program executed an invalid command, return
CODING_FINISH_INTERRUPT.
(code_convert_region): Pay attention to the converters return
value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
|
| |
|
|
| |
end_unchanged after we delete the source text.
|
| |
|
|
|
| |
chars in produced byte sequence.
(Ffind_operation_coding_system): Doc-string fixed.
|
| |
|
|
|
|
|
| |
processing if CODING requires flushing.
(encode_coding): Likewise.
(code_convert_region): Likewise.
(code_convert_string): Likewise.
|
| | |
|
| |
|
|
|
| |
correctly. They are for SS2 and SS3 respectively.
(ccl_coding_driver): Fix previous change.
|
| | |
|
| |
|
|
|
| |
succeeding codes (0xa0..0xFF) if the codes follows single shit
code.
|
| |
|
|
|
| |
CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
correctly.
|
| |
|
|
| |
(setup_coding_system): Correctly setup `valid_codes' member.
|
| |
|
|
|
| |
contents.
(detect_coding_mask): Fix previous change.
|
| |
|
|
| |
(init_coding_once): Initialize default_buffer_file_coding.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(coding_category_name): Include "coding-category-ccl".
(detect_coding_ccl): New function.
(setup_coding_system): Setup coding->spec.ccl.valid_codes from the
coding system priority `valid-codes' for CCL based coding systesm.
(detect_coding_mask): Check also a CCL based coding system.
(Fupdate_coding_systems_internal): Renamed from
Fupdate_iso_coding_systems.
(syms_of_coding): Change property char-table-extra-slot of
translation-table to 1. Initialize and static pro Qvalid_codes.
|
| |
|
|
| |
docstring of file-coding-system-alist.
|
| |
|
|
|
| |
(init_coding_once): Don't initialize conversion_buffer here. It
is done in init_coding.
|
| |
|
|
| |
encounter some invalid code while decoding.
|
| |
|
|
| |
if the sencond byte is invalid, produce the first byte as is.
|
| |
|
|
| |
(decode_coding_sjis_big5): Bug for handling invalid code fixed.
|
| | |
|
| |
|
|
|
|
| |
line endings. Always update dst_bytes to number of bytes actually copied.
(decode_eol): Fix value of coding->produced when decoding Unix
line endings (in case this function is ever used for that).
|
| |
|
|
|
| |
(Fdetect_coding_region): Doc-string adjusted for the above change.
(Fdetect_coding_string): Likewise.
|
| |
|
|
| |
Does encoding or decoding but doesn't set Vlast_coding_system_used.
|
| | |
|
| |
|
|
| |
like CODING_EOL_UNDECIDED.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(detect_coding_mask): Skip ASCII codes at the head according to
ascii_skip_code.
(coding_priorities): New variable.
(Fset_coding_priority_internal): New function.
(detect_coding): Call set_coding_mask with coding_priorities as
arg CODING.
(init_coding_once): Initialize ascii_skip_code.
(syms_of_coding): Declare set-coding-priority-internal as a Lisp
function.
|
| | |
|
| |
|
|
| |
coding->heading_ascii if eol conversion is necessary.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
translate/translation respectively throughtout the file.
(encode_coding_iso2022): Fix bug in encoding a text ending by a
composite character.
(check_composing_code): If we are decoding the last block of data,
return 0 even if the source doesn't end by an escape sequence
which terminates the current composing sequence.
(decode_coding_iso2022): Decode correctly even if the source
doesn't end by an escape sequence which terminates the current
composing sequence.
|
| |
|
|
|
|
| |
(code_convert_string1): Likewise.
(Fdecode_coding_region, Fencode_coding_region): Doc fixes.
(Fdecode_coding_string, Fencode_coding_string): Doc fixes.
|
| | |
|
| | |
|
| |
|
|
| |
reset graphic planes and registers.
|
| | |
|
| |
|
|
|
|
|
| |
if preceded by CR, since that confuses eol decoding.
(code_convert_region): When conversion fails with
CODING_FINISH_INSUFFICIENT_SRC, was overwriting src with garbage
from dst instead of copying from src to dst.
|
| |
|
|
| |
FLAGS member of coding spec is a cons of CCL program symbols.
|