summaryrefslogtreecommitdiff
path: root/src/coding.c
AgeCommit message (Collapse)Author
2004-04-14(Ffind_coding_systems_region_internal): Include raw-text andKenichi Handa
no-conversion in the result.
2004-04-12Sync to HEAD.Kenichi Handa
(emacs_mule_char): Check invalid code more regidly.
2004-03-30(DECODE_DESIGNATION): Set chars_96 to -1 instead ofKenichi Handa
goto invalid_code. (decode_coding_iso_2022): Fix handling of invalid designation.
2004-03-11Add many prototypes for static functions.Kenichi Handa
2004-03-11(get_translation_table): Allow max_lookup to be NULL.Kenichi Handa
(decode_coding): Call get_translation_table with max_lookup NULL. (Ffind_coding_systems_region_internal): Likewise. (Funencodable_char_position, Fcheck_coding_systems_region): Likewise.
2004-03-11(get_translation_table): New arg max_lookup. Caller changed.Kenichi Handa
(LOOKUP_TRANSLATION_TABLE): Pay attention that table may be a list.
2004-03-11(get_translation_table): Declare it as Lisp_Object.Kenichi Handa
(LOOKUP_TRANSLATION_TABLE): New macro. (produce_chars): Use LOOKUP_TRANSLATION_TABLE instead of CHAR_TABLE_REF. (consume_chars): Likewise.
2004-03-11(get_translation): Fix previous change.Kenichi Handa
(encode_coding): Don't call translate_chars. (consume_chars): New arg translation_table. Caller changed. (translate_chars): Deleted. (syms_of_coding): Make translation-table's number of extra slots 2.
2004-03-10(MAX_ANNOTATION_LENGTH): Adjusted for the change ofKenichi Handa
annotation data format. (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): Change arguments FROM and TO to single argument NCHARS. Caller changed. (decode_coding_utf_8): Pay attention to coding->charbuf_used. (decode_coding_utf_16, decode_coding_emacs_mule) (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) (decode_coding_ccl, decode_coding_charset): Likewise. (get_translation): New function. (produce_chars): New arguments translation_table and last_block. Translate characters here. Return number of carryover chars. Caller changed. (produce_composition): New argument pos. Caller changed. Adjusted for the change of annotation data format. (produce_charset, produce_annotation): Likewise. (decode_coding): Don't call translate_chars.
2004-03-09(decode_coding_emacs_mule): Handle insufficent source correctly.Kenichi Handa
2004-03-09*** empty log message ***Kenichi Handa
2004-03-08(detect_coding_emacs_mule): Fix counting of encodedKenichi Handa
byte sequence. (detect_coding_ccl): Fix setting of the variable valids.
2004-03-07UTF-8 is now RFC3629.Eli Zaretskii
2004-03-04(decode_coding_utf_16): Fix handling of surrogate pare.Kenichi Handa
2004-02-02(coding_restore_composition): Check invalidKenichi Handa
composition data more rigidly.
2004-01-29(detect_coding_iso_2022): Fix handling of SS2 and SS3.Kenichi Handa
(detect_coding): Treat '\0' as normal ASCII byte.. (detect_coding_system): Likewise.
2004-01-28(decode_coding_sjis): Fix comment.Kenichi Handa
2004-01-27(decode_coding_sjis): Handle 4th charset (typically JISX0212).Kenichi Handa
(encode_coding_sjis): Likewise.
2004-01-27(QCmnemonic, QCdefalut_char)Kenichi Handa
(QCdecode_translation_table, QCencode_translation_table) (QCpost_read_conversion, QCpre_write_conversion): New variables. (get_translation_table): Return a list of translation tables if necessary. (decode_coding): Call get_translation_table with ENCODEP 0. (char_encodable_p): If translation_table is non-nil, always call translate_char. (Fdefine_coding_system_internal): Accept list of translation tables as :encode-translation-table and :decode-translation-table. (Fcoding_system_put): New function. (syms_of_coding): Declare new symbols. Defsubr Scoding_system_put.
2004-01-25(Fdefine_coding_system_internal): Fix previous change.Kenichi Handa
2004-01-25(Fdefine_coding_system_internal): Fix previous change.Kenichi Handa
2004-01-25(get_translation_table): New function.Kenichi Handa
(translate_chars): Fix the bug of skipping annotation data. (decode_coding): Utilze get_translation_table. (encode_coding): Likewise. (char_encodable_p): Translate char if necessary. (Funencodable_char_position): Likewise. (Ffind_coding_systems_region_internal): Setup translation table for encode in a coding system attribute vector in advance. (Fcheck_coding_systems_region): Likewise. (Fdefine_coding_system_internal): Allow a symbol as translation table. For shift-jis type coding system, allow 4th charset.
2004-01-24(decode_coding_sjis): Check the first byte rigidly.Kenichi Handa
2003-12-29(Qinsufficient_source, Qinconsistent_eol)Kenichi Handa
(Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables. (Vlast_code_conversion_error): New variables. (syms_of_coding): DEFSYM or DEFVAR_LISP them. (ONE_MORE_BYTE): Record error if any instead of signaling an error. If non-ASCII multibyte char is found, return the negative value of the code. All callers changed to check it. (ONE_MORE_BYTE_NO_CHECK): Likewise. (record_conversion_result): New function. All codes setting coding->result are changed to call this function. (detect_coding_utf_8): Don't use the local variable incomplete. (decode_coding_utf_8): Likewise. (emacs_mule_char): Change the second arg to `const'. (detect_coding_emacs_mule): Don't use the local variable incomplete. (detect_coding_sjis): Likewise. (detect_coding_big5): Likewise. (decode_coding): Fix of flushing out unprocessed data. (make_conversion_work_buffer): Fix making of a work buffer. (decode_coding_object): Return coding->dst_object;
2003-12-28(Fcheck_coding_system): Further doc fix.Luc Teirlinck
2003-12-28(Fcheck_coding_system): Doc fix.Luc Teirlinck
2003-12-03(decode_coding_iso2022): Fix for preserving UTF-8Kenichi Handa
encoding sequence.
2003-12-02(detect_coding): Fix previous change.Kenichi Handa
(detect_coding_system): Likewise.
2003-12-02(enum iso_code_class_type): Delete ISO_carriage_return.Kenichi Handa
(CODING_GET_INFO): Delete argument eol_type. Callers changed. (decode_coding_utf_8): Don't do eol converion. (detect_coding_utf_16): Check coding->src_chars, not coding->src_bytes. Add heuristics for those that have no signature. (decode_coding_emacs_mule): Don't do eol converion. (decode_coding_iso_2022): Likewise. (decode_coding_sjis): Likewise. (decode_coding_big5): Likewise. (decode_coding_charset): Likewise. (adjust_coding_eol_type): Return a new coding system. (detect_coding): Don't detect eol. Fix for utf-16 detection. (decode_eol): In case of CRLF->LF conversion, use del_range_2 on each change. (decode_coding): Pay attention to undo_list. Do eol convesion for all types of coding-systems (if necessary). (Vcode_conversion_work_buf_list): Delete it. (Vcode_conversion_reused_workbuf): Renamed from Vcode_conversion_reused_work_buf. (Vcode_conversion_workbuf_name): New variable. (reused_workbuf_in_use): New variable. (make_conversion_work_buffer): Delete the arg DEPTH. (code_conversion_restore): Argument changed to cons. (code_conversion_save): Delete the argument BUFFER. Callers changed. (detect_coding_system): New argument src_chars. Callers changed. Fix for utf-16 detection. (init_coding_once): Don't use ISO_carriage_return. (syms_of_coding): Initialized Vcode_conversion_workbuf_name and reused_workbuf_in_use.
2003-11-24(Fdefine_coding_system_internal): Fix previous change.Kenichi Handa
2003-11-23(Fdefine_coding_system_internal): Fix checking of ascii compatibility.Kenichi Handa
2003-11-22(encode_coding_emacs_mule): Resync charset_list toKenichi Handa
Vemacs_mule_charset_list.
2003-11-22(encode_coding_emacs_mule): Emit bytes with MSB.Kenichi Handa
2003-11-17(coding_restore_composition): Lisp_Object/int mixup.Stefan Monnier
2003-11-07(coding_allocate_composition_data): ResetKenichi Handa
coding->composing to COMPOSITION_NO. (coding_restore_composition): Detect invalid composition data. Give Fstring and Fvector a Lispy integer, not C int.
2003-10-07(Fcoding_system_p): Return t for auto-loading coding system.Kenichi Handa
2003-10-07(Qcoding_system_define_form): New variable.Kenichi Handa
(syms_of_coding): Intern and staticpro it. (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
2003-10-06(produce_chars): Revert last change.Andreas Schwab
2003-10-06(Fdefine_coding_system_alias): Update Vcoding_system_list.Kenichi Handa
2003-10-01(consume_chars): If coding->src_object is nil, don't check annotation.Kenichi Handa
2003-09-29(inhibit_pre_post_conversion): Removed (unused).Dave Love
(alloc_destination, produce_chars): Use EMACS_INT for byte/char counts. (coding_inherit_eol_type): Remove unused attrs. (detect_coding): Cast arg of detect_eol.
2003-09-17(Fread_coding_system): Fix arg of XSETSTRING.Dave Love
(Fset_coding_system_priority): Doc fix.
2003-09-08*** empty log message ***Kenichi Handa
2003-09-08New directoryKenichi Handa
2003-09-01Add arch taglinesMiles Bader
2003-08-28(decode_coding_iso2022): Initialized local variable c2.Kenichi Handa
(decode_coding_sjis_big5): Likewise.
2003-07-22(run_pre_post_conversion_on_str): Use delete_all_overlays.Stefan Monnier
2003-07-09Include intervals.h for Fset_text_properties.Stefan Monnier
2003-07-09(run_pre_post_conversion_on_str): Use new type for overlays_(before|after).Stefan Monnier
2003-07-09(decode_coding_sjis): Check bytes more rigidly.Kenichi Handa