aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (code_convert_region): Compute beg/end_unchanged perGerd Moellmann1999-08-231-4/+4
| | | | buffer.
* (setup_coding_system): Get compiled CCL code by justKenichi Handa1999-07-261-15/+5
| | | | calling setup_coding_system.
* (decode_coding_sjis_big5): Avoid compiler warning.Kenichi Handa1999-06-181-3/+9
|
* (ENCODE_SJIS_BIG5_CHARACTER): Encode charsetKenichi Handa1999-06-081-1/+2
| | | | japanese-jisx0208-1978 correctly.
* (ENCODE_SJIS_BIG5_CHARACTER): Encode charsetKenichi Handa1999-06-021-0/+2
| | | | latin-jisx0201 correctly.
* (syms_of_coding): Doc fix.Richard M. Stallman1999-05-241-4/+9
|
* (code_convert_region): If eol format is inconsistent,Kenichi Handa1999-05-101-3/+10
| | | | | change coding->symbol to the sibling coding system of Unix like eol format.
* [andrewi]Andrew Innes1999-05-021-1/+6
| | | | | | | | | | (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.
* Add comments for decode_coding and encode_coding.Kenichi Handa1999-04-061-2/+22
|
* (encode_coding_iso2022): Initialize dummy arguments toKenichi Handa1999-03-231-0/+3
| | | | ENCODE_ISO_CHARACTER for the previous change on this macro.
* (ENCODE_ISO_CHARACTER): Check validity of CHARSET. IfKenichi Handa1999-03-201-26/+46
| | | | | invalid, produce the buffer internal byte sequence without encoding.
* (setup_coding_system): Check for CODING_SYSTEM = nil.Kenichi Handa1999-03-091-0/+5
|
* Comment for ISO 2022 encoding mechanism modified.Kenichi Handa1999-03-011-61/+71
|
* (Fdecode_sjis_char): In case of error, use %x forKenichi Handa1999-02-181-4/+4
| | | | | formatting error message. (Fdecode_big5_char): Likewise.
* (Fdecode_sjis_char, Fencode_sjis_char): HanldeKenichi Handa1999-02-161-14/+39
| | | | | ASCII correctly. Signal error on invalid characters. (Fdecode_big5_char, Fencode_big5_char): Likewise.
* (decode_coding_iso2022): Don't set coding->composed_chars to 0 here.Kenichi Handa1999-02-151-1/+1
| | | | (setup_coding_system): Set coding->composed_chars to 0 here.
* (ccl_coding_driver): On encoding, coding->produced_charKenichi Handa1999-02-081-1/+3
| | | | should be set to coding->produced.
* (encode_coding_iso2022): Before writing out an invalidKenichi Handa1999-02-051-0/+2
| | | | code, reset glaphic planes and registers if necessary.
* (syms_of_coding): eol-mnemonic-* variables are nowEli Zaretskii1999-01-271-16/+16
| | | | strings, not characters.
* (syms_of_coding): Doc fix for inhibit-eol-conversion.Dave Love1999-01-251-1/+2
|
* (Fdecode_sjis_char): Decode Japanese Katakana characterKenichi Handa1999-01-141-9/+27
| | | | | correctly. (Fencode_sjis_char): Encode Japanese Katakana character correctly.
* (syms_of_coding): Doc fix for inhibit-eol-conversion.Dave Love1999-01-111-1/+2
|
* (DECODE_DESIGNATION): Jump to label_invalid_code ifKenichi Handa1998-12-151-5/+17
| | | | | | | | | | 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.
* (DECODE_CHARACTER_ASCII): Check validity of insertedKenichi Handa1998-10-281-2/+10
| | | | | | | code. (DECODE_CHARACTER_DIMENSION1): Likewise. (DECODE_CHARACTER_DIMENSION2): Likewise. (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
* (code_convert_region): Kill the work buffer created byKenichi Handa1998-10-261-3/+5
| | | | pre-write-conversion.
* (code_convert_region): While preserving the orignalKenichi Handa1998-10-241-5/+6
| | | | point, pay attention to the byte combining problem.
* (setup_coding_system): Fix setting upKenichi Handa1998-10-211-10/+29
| | | | | | | | 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.
* (decode_coding_iso2022): Set coding->fake_multibyte toKenichi Handa1998-10-171-0/+2
| | | | 1 when encountered with a code of the range 0x80..0x9F.
* (shrink_decoding_region): If a charset other than asciiKenichi Handa1998-10-121-0/+6
| | | | | is initially designated to G0, don't shrink the region. (shrink_encoding_region): Likewise.
* (code_convert_region): Set inhibit_modification_hooksKenichi Handa1998-10-081-2/+8
| | | | to 1 before calling Fset_text_properties.
* (check_composing_code): Fix previous change. Now itKenichi Handa1998-09-281-82/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (check_composing_code): If the current composingKenichi Handa1998-09-261-41/+82
| | | | | | | | | | 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.
* (decode_eol): While decoding DOS-like eol, handle aKenichi Handa1998-09-251-7/+23
| | | | | | single CR code correctly. (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
* (ccl_coding_driver): If ccl_driver is interrupted by aKenichi Handa1998-09-181-0/+23
| | | | | | | 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.
* (code_convert_region): Update beg_unchanged andKenichi Handa1998-09-161-5/+5
| | | | end_unchanged after we delete the source text.
* (ccl_coding_driver): Always calculate correct mulibyteKenichi Handa1998-09-071-13/+6
| | | | | chars in produced byte sequence. (Ffind_operation_coding_system): Doc-string fixed.
* (decode_coding): Even if SRC_BYTES is zero, tryKenichi Handa1998-08-311-4/+12
| | | | | | | processing if CODING requires flushing. (encode_coding): Likewise. (code_convert_region): Likewise. (code_convert_string): Likewise.
* (code_convert_region1): Remove all text properties of the region.Kenichi Handa1998-08-281-0/+4
|
* (detect_coding_iso2022): Handle ESC N and ESC OKenichi Handa1998-08-271-27/+11
| | | | | correctly. They are for SS2 and SS3 respectively. (ccl_coding_driver): Fix previous change.
* (file-coding-system-alist, select-safe-coding-system-function): Doc fix.Andreas Schwab1998-08-241-2/+2
|
* (detect_coding_iso2022): Don't check the byte length ofKenichi Handa1998-08-241-8/+24
| | | | | succeeding codes (0xa0..0xFF) if the codes follows single shit code.
* (detect_coding_system): If detect_eol_type returnsKenichi Handa1998-08-211-1/+1
| | | | | CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED correctly.
* (ccl_coding_driver): Setup ccl->last_block properly.Kenichi Handa1998-08-181-1/+5
| | | | (setup_coding_system): Correctly setup `valid_codes' member.
* (coding_category_name): Fix the order of initialKenichi Handa1998-08-151-3/+3
| | | | | contents. (detect_coding_mask): Fix previous change.
* (default_buffer_file_coding): New variable.Kenichi Handa1998-08-101-0/+4
| | | | (init_coding_once): Initialize default_buffer_file_coding.
* (CHARSET_OK): Check that coding_system_table[IDX] != 0.Richard M. Stallman1998-08-091-5/+6
|
* Avoid using initializers for Lisp_Object.Richard M. Stallman1998-08-081-9/+20
|
* (Qvalid_codes): New variable.Kenichi Handa1998-08-021-24/+108
| | | | | | | | | | | | (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.
* (syms_of_coding): Mention auto-coding-alist in theKenichi Handa1998-07-251-1/+2
| | | | docstring of file-coding-system-alist.
* (init_coding): New function.Kenichi Handa1998-07-211-1/+6
| | | | | (init_coding_once): Don't initialize conversion_buffer here. It is done in init_coding.