summaryrefslogtreecommitdiff
path: root/src/coding.c
AgeCommit message (Collapse)Author
1999-05-10(code_convert_region): If eol format is inconsistent,Kenichi Handa
change coding->symbol to the sibling coding system of Unix like eol format.
1999-05-02[andrewi]Andrew Innes
(decode_eol): Set produced/consumed values to zero if src_bytes is <= 0 on entry. [handa] (setup_raw_text_coding_system): Call setup_coding_system to initialize the fields of struct coding_system correctly.
1999-04-06Add comments for decode_coding and encode_coding.Kenichi Handa
1999-03-23(encode_coding_iso2022): Initialize dummy arguments toKenichi Handa
ENCODE_ISO_CHARACTER for the previous change on this macro.
1999-03-20(ENCODE_ISO_CHARACTER): Check validity of CHARSET. IfKenichi Handa
invalid, produce the buffer internal byte sequence without encoding.
1999-03-09(setup_coding_system): Check for CODING_SYSTEM = nil.Kenichi Handa
1999-03-01Comment for ISO 2022 encoding mechanism modified.Kenichi Handa
1999-02-18(Fdecode_sjis_char): In case of error, use %x forKenichi Handa
formatting error message. (Fdecode_big5_char): Likewise.
1999-02-16(Fdecode_sjis_char, Fencode_sjis_char): HanldeKenichi Handa
ASCII correctly. Signal error on invalid characters. (Fdecode_big5_char, Fencode_big5_char): Likewise.
1999-02-15(decode_coding_iso2022): Don't set coding->composed_chars to 0 here.Kenichi Handa
(setup_coding_system): Set coding->composed_chars to 0 here.
1999-02-08(ccl_coding_driver): On encoding, coding->produced_charKenichi Handa
should be set to coding->produced.
1999-02-05(encode_coding_iso2022): Before writing out an invalidKenichi Handa
code, reset glaphic planes and registers if necessary.
1999-01-27(syms_of_coding): eol-mnemonic-* variables are nowEli Zaretskii
strings, not characters.
1999-01-25(syms_of_coding): Doc fix for inhibit-eol-conversion.Dave Love
1999-01-14(Fdecode_sjis_char): Decode Japanese Katakana characterKenichi Handa
correctly. (Fencode_sjis_char): Encode Japanese Katakana character correctly.
1999-01-11(syms_of_coding): Doc fix for inhibit-eol-conversion.Dave Love
1998-12-15(DECODE_DESIGNATION): Jump to label_invalid_code ifKenichi Handa
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.
1998-10-28(DECODE_CHARACTER_ASCII): Check validity of insertedKenichi Handa
code. (DECODE_CHARACTER_DIMENSION1): Likewise. (DECODE_CHARACTER_DIMENSION2): Likewise. (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
1998-10-26(code_convert_region): Kill the work buffer created byKenichi Handa
pre-write-conversion.
1998-10-24(code_convert_region): While preserving the orignalKenichi Handa
point, pay attention to the byte combining problem.
1998-10-21(setup_coding_system): Fix setting upKenichi Handa
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.
1998-10-17(decode_coding_iso2022): Set coding->fake_multibyte toKenichi Handa
1 when encountered with a code of the range 0x80..0x9F.
1998-10-12(shrink_decoding_region): If a charset other than asciiKenichi Handa
is initially designated to G0, don't shrink the region. (shrink_encoding_region): Likewise.
1998-10-08(code_convert_region): Set inhibit_modification_hooksKenichi Handa
to 1 before calling Fset_text_properties.
1998-09-28(check_composing_code): Fix previous change. Now itKenichi Handa
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.
1998-09-26(check_composing_code): If the current composingKenichi Handa
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.
1998-09-25(decode_eol): While decoding DOS-like eol, handle aKenichi Handa
single CR code correctly. (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
1998-09-18(ccl_coding_driver): If ccl_driver is interrupted by aKenichi Handa
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.
1998-09-16(code_convert_region): Update beg_unchanged andKenichi Handa
end_unchanged after we delete the source text.
1998-09-07(ccl_coding_driver): Always calculate correct mulibyteKenichi Handa
chars in produced byte sequence. (Ffind_operation_coding_system): Doc-string fixed.
1998-08-31(decode_coding): Even if SRC_BYTES is zero, tryKenichi Handa
processing if CODING requires flushing. (encode_coding): Likewise. (code_convert_region): Likewise. (code_convert_string): Likewise.
1998-08-28(code_convert_region1): Remove all text properties of the region.Kenichi Handa
1998-08-27(detect_coding_iso2022): Handle ESC N and ESC OKenichi Handa
correctly. They are for SS2 and SS3 respectively. (ccl_coding_driver): Fix previous change.
1998-08-24(file-coding-system-alist, select-safe-coding-system-function): Doc fix.Andreas Schwab
1998-08-24(detect_coding_iso2022): Don't check the byte length ofKenichi Handa
succeeding codes (0xa0..0xFF) if the codes follows single shit code.
1998-08-21(detect_coding_system): If detect_eol_type returnsKenichi Handa
CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED correctly.
1998-08-18(ccl_coding_driver): Setup ccl->last_block properly.Kenichi Handa
(setup_coding_system): Correctly setup `valid_codes' member.
1998-08-15(coding_category_name): Fix the order of initialKenichi Handa
contents. (detect_coding_mask): Fix previous change.
1998-08-10(default_buffer_file_coding): New variable.Kenichi Handa
(init_coding_once): Initialize default_buffer_file_coding.
1998-08-09(CHARSET_OK): Check that coding_system_table[IDX] != 0.Richard M. Stallman
1998-08-08Avoid using initializers for Lisp_Object.Richard M. Stallman
1998-08-02(Qvalid_codes): New variable.Kenichi Handa
(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.
1998-07-25(syms_of_coding): Mention auto-coding-alist in theKenichi Handa
docstring of file-coding-system-alist.
1998-07-21(init_coding): New function.Kenichi Handa
(init_coding_once): Don't initialize conversion_buffer here. It is done in init_coding.
1998-07-09(code_convert_string): Count characters again if weKenichi Handa
encounter some invalid code while decoding.
1998-07-09(DECODE_ISO_CHARACTER): While decoding two-byte code,Kenichi Handa
if the sencond byte is invalid, produce the first byte as is.
1998-06-26(setup_raw_text_coding_system): New function.Kenichi Handa
(decode_coding_sjis_big5): Bug for handling invalid code fixed.
1998-06-20Doc fixes.Karl Heuer
1998-06-16(encode_eol): Fix typo that prevented converting to MacRichard M. Stallman
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).
1998-06-13(detect_coding_system): Always return a list of HIGHEST is zero.Kenichi Handa
(Fdetect_coding_region): Doc-string adjusted for the above change. (Fdetect_coding_string): Likewise.