summaryrefslogtreecommitdiff
path: root/src/coding.c
AgeCommit message (Collapse)Author
2003-06-06* coding.c (QCcategory): New variable.Kenichi Handa
(syms_of_coding): Defsym it. Set all elements of Vcoding_category_table and their symbol values. (Fset_coding_system_priority): Doc fix. Update symbol qvalues of coding-category-XXX, and coding-category-list. (Fdefine_coding_system_internal): Add category in the plist.
2003-06-05(Fset_coding_system_priority): Doc fix. Update valuesKenichi Handa
of codng-category-XXX, and coding-category-list. (syms_of_coding): Set all elements of Vcoding_category_table and their symbol values.
2003-06-05(decode_coding_iso_2022): Fix handling of invalidKenichi Handa
bytes. (raw_text_coding_system): Check NILP (coding_system). (coding_inherit_eol_type): Check NILP (coding_system) and NILP (parent). (consume_chars): Fix for the case of raw-text.
2003-06-04_buffer_size): If coding->type isKenichi Handa
coding_type_ccl, double magnification on CRLF encoding.
2003-06-02(Qutf_8): New.Dave Love
(syms_of_coding): Intern it.
2003-05-31(DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flagsKenichi Handa
is nonzero, accept multibyte form of eight-bit-control chars. (decode_composition_emacs_mule): Likewise. (decode_coding_emacs_mule): Likewise. (encode_coding_emacs_mule): If coding->flags is nonzero, produce multibyte form of eight-bit-control chars.
2003-05-30(ccl_coding_driver): Set ccl->eight_bit_controlKenichi Handa
property before calling ccl_driver.
2003-05-29(setup_coding_system): If coding hasKenichi Handa
post-read-conversion or pre-write-conversion, set CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK respectively. (decode_coding_gap): Run post-read-conversion if any.
2003-05-29(make_conversion_work_buffer): Change the work bufferKenichi Handa
name to the same one as that of Emacs 21.
2003-05-28*** empty log message ***Kenichi Handa
2003-05-28(detected_mask): Delete unused variable.Kenichi Handa
(decode_coding_iso_2022): Pay attention to the byte sequence of CTEXT extended segment, and retain those bytes as is. (decode_coding_ccl): Delete unused variable `valids'. (setup_coding_system): Delete unused variable `category'. (consume_chars): Delete unused variable `category'. Make it work for non-multibyte case. (make_conversion_work_buffer): Argument changed. (saved_coding): Delete unused variable. (code_conversion_restore): Don't check saved_coding->destination. (code_conversion_save): New function. (decode_coding_gap, encode_coding_gap): Call code_conversion_save instead of record_unwind_protect. (decode_coding_object, encode_coding_object): Likewise. Recover PT. (detect_coding_system): Delete unused variable `mask'. (Fdefine_coding_system_internal): Delete unsed vaiable id;
2003-05-25(find_safe_codings): Remove unused var `i'.Stefan Monnier
2003-05-24(find_safe_codings): Fix last change.Andreas Schwab
2003-05-22(ENCODE_UNSAFE_CHARACTER): Adjusted for the name changeKenichi Handa
of CODING_REPLACEMENT_CHARACTER. (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and check this flag on encoding. (encode_coding_sjis_big5): Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode. (Fset_terminal_coding_system_internal): Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
2003-05-20(Fdefine_coding_system_internal): Fix for the case thatKenichi Handa
coding_type is Qcharset.
2003-05-19(decode_coding_string): Handle post-read-conversionKenichi Handa
even if the coding doesn't require decoding.
2003-05-08(Vlast_coding_system_used): Doc fix.Dave Love
2003-05-06(Qsignature, Qendian): Delete these variables.Kenichi Handa
(syms_of_coding): Don't initialize them. (CATEGORY_MASK_UTF_16_AUTO): New macro. (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in detect_info->found. (decode_coding_utf_16): Don't detect BOM here. (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) is NOT utf_16_without_bom. (setup_coding_system): For a coding system of type utf-16, check if the attribute :endian is Qbig or not (not nil or not), and set CODING_REQUIRE_DETECTION_MASK if BOM detection is required. (detect_coding): If coding type is utf-16 and BOM detection is required, detect it. (Fdefine_coding_system_internal): For a coding system of type utf-16, check if the attribute :endian is Qbig or not (not nil or not).
2003-05-06(coding_set_source): Fix for the case that the currentKenichi Handa
buffer is different from coding->src_object. (decode_coding_object): Don't use the conversion work buffer if DST_OBJECT is a buffer.
2003-05-01(coding_system_accept_latin_extra_p): Delete thisKenichi Handa
function. (find_safe_codings): Pay attention to the property tranlsation-table-for-encode of each codings. (syms_of_coding): Give Qtranslation_table the extra slot number 2.
2003-04-08(coding_system_accept_latin_extra_p): New function.Kenichi Handa
(find_safe_codings): Pay attention to characters registered in latin-extra-code-table.
2003-04-08(code_convert_region): Fix last change.Kenichi Handa
2003-04-08(code_convert_region_unwind): SetKenichi Handa
Vlast_coding_system_used to the argument. (code_convert_region): If post-read-conversion function changed the value of last-coding-sytem, keep the new value in coding->symbol so that it won't be overridden. (run_pre_post_conversion_on_str): Likewise.
2003-03-28(Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)Kenichi Handa
(Qutf_16_le): Remove these variables. (syms_of_coding): Don't DEFSYM them. (decode_coding_utf_16): Fix handling of BOM. (encode_coding_utf_16): Fix handling of BOM.
2003-03-18(Vchar_coding_system_table): Remove this variable.Kenichi Handa
(Vcoding_system_safe_chars): New variable. (intersection): Remove this function. (find_safe_codings): Don't use Vchar_coding_system_table, but try all codings in SAFE_CODINGS. (Ffind_coding_systems_region_internal): Adjusted for the change of find_safe_codings. Get generic coding systems from Vcoding_system_safe_chars. (Fdefine_coding_system_internal): New function. (syms_of_coding): Defsubr Sdefine_coding_system_internal. Initialize and staticpro Vcoding_system_safe_chars.
2003-03-13(Fdetect_coding_region): Fix docstring.Kenichi Handa
2003-03-13(Fdetect_coding_string): Fix docstring.Kenichi Handa
2003-03-07(CODING_ADD_COMPOSITION_COMPONENT): If the number ofKenichi Handa
composition components reaches the limit, terminate composing. (COMPOSITION_OK): New macro. (detect_coding_iso2022): Use it if an escapse sequence for composition is found. (coding_restore_composition): Adjust the number of composition components if it is not sane.
2003-02-13(Fcheck_coding_systems_region): Fix type errors.Dave Love
2003-02-04Trailing whitespace deleted.Juanma Barranquero
2003-01-31(syms_of_coding): Add `...' for symbols in the docstring ofKenichi Handa
`coding-system-require-warning'.
2003-01-30(decode_coding_ccl, encode_coding_ccl): Call ccl_driverKenichi Handa
with the last arg charset_list acquired from coding. (Fdefine_coding_system_internal): For ccl-based coding system, fix the attribute coding_attr_ccl_valids.
2003-01-06(CATEGORY_MASK_RAW_TEXT): New macro.Kenichi Handa
(detect_coding_utf_8, detect_coding_utf_16) (detect_coding_emacs_mule, detect_coding_iso_2022) (detect_coding_sjis, detect_coding_big5) (detect_coding_ccl, detect_coding_charset): Change argument MASK to DETECT_INFO. Update DETECT_INFO and return 1 if the byte sequence is valid in this coding system. Callers changed. (MAX_ANNOTATION_LENGTH): New macro. (ADD_ANNOTATION_DATA): New macro. (ADD_COMPOSITION_DATA): Argument changed. Callers changed. Call ADD_ANNOTATION_DATA. The format of annotation data changed. (ADD_CHARSET_DATA): New macro. (emacs_mule_char): New argument ID. Callers changed. (decode_coding_emacs_mule, decode_coding_iso_2022) (decode_coding_sjis, decode_coding_big5, decode_coding_charset): Produce charset annotation data in coding->charbuf. (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention to charset annotation data in coding->charbuf. (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK coding->common_flags if the coding system is iso-2022 based and uses designation. (produce_composition): Adjusted for the new annotation data format. (produce_charset): New function. (produce_annotation): Handle charset annotation. (handle_composition_annotation, handle_charset_annotation): New functions. (consume_chars): Handle charset annotation. Utilize the above two functions. (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same buffer, get the deleted text as a string and set coding->src_object to that string. (detect_coding, detect_coding_system): Use the new struct coding_detection_info.
2002-12-17(coding_system_require_warning): New variable.Kenichi Handa
(syms_of_coding): DEFVAR it.
2002-12-13(Funencodable_char_position): Set pend correctly.Kenichi Handa
2002-11-09(Vtranslation_table_for_input): New.Dave Love
(syms_of_coding): DEFVAR it.
2002-11-06Reformat some DEFUNs so that etags works.Dave Love
2002-11-06(decode_coding_utf_8): When eol_type is Qdos, handleKenichi Handa
the case that the last byte is '\r' correctly. (decode_coding_emacs_mule): Likewise. (decode_coding_iso_2022): Likewise. (decode_coding_sjis): Likewise. (decode_coding_big5): Likewise. (decode_coding_charset): Likewise. (produce_chars): Likewise. (decode_coding): Flushing out the unprocessed data correctly. (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
2002-11-02(decode_coding_emacs_mule, decode_coding_iso2022)Stefan Monnier
(decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
2002-10-18Fix typo in comment.Juanma Barranquero
2002-10-16(Fdefine_coding_system_internal): Fix previous change.Kenichi Handa
2002-10-16(detect_coding_charset): If only ASCII bytes are found, return 0.Kenichi Handa
(detect_coding_system): Fix previous change. (Fdefine_coding_system_internal): Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
2002-10-16(detect_coding): Fix previous change.Kenichi Handa
2002-10-15(Fcheck_coding_system): Doc fix.Dave Love
2002-10-15(decode_coding): Fix args to translate_chars. PayKenichi Handa
attention to Vstandard_translation_table_for_decode. (encode_coding): Fix args to translate_chars. Pay attention to Vstandard_translation_table_for_encode.
2002-10-10(detect_coding_utf_8): Check incomplete byte sequence.Kenichi Handa
Don't update *mask when correctly detected. (detect_coding_utf_16): Likewise. (detect_coding_emacs_mule): Likewise. (detect_coding_iso_2022): Likewise. (detect_coding_sjis): Likewise. (detect_coding_big5): Likewise. (detect_coding_ccl): Likewise. (decode_coding_sjis): Fix decoding of katakana-jisx0201. (detect_eol): Delete the argument CODING, and add the argument CATEGORY. (detect_coding): Adjusted for the changes above. (detect_coding_system): Likewise.
2002-10-09(decode_coding_utf_8): Treat surrogates as invalid.Dave Love
2002-10-08(code_convert_region): When we need more GAP forKenichi Handa
conversion, pay attention to the case that coding->produced is not greater than coding->consumed.
2002-09-30(decode_coding_emacs_mule): Check coding->cmp_data.Kenichi Handa
Only when it is non-nil, handle composition sequence. (setup_coding_system) <0>: Don't force composition handling.
2002-09-26(run_pre_post_conversion_on_str): Save and restore Vdeactivate_mark.Richard M. Stallman