aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | (encode_coding_emacs_mule): Pay attention to raw-8-bit chars.Kenichi Handa2002-05-311-0/+25
| | | | | | | | | | | | | | | | | | | | | (encode_coding_iso_2022): Likewise. (encode_coding_sjis): Likewise. (encode_coding_big5): Likewise. (encode_coding_charset): Likewise.
| * | (CODING_ISO_FLAG_USE_ROMAN): New macroKenichi Handa2002-05-301-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (CODING_ISO_FLAG_USE_OLDJIS): New macro. (CODING_ISO_FLAG_FULL_SUPPORT): Macro definition changed. (setup_iso_safe_charsets): Fix arguemtns to Fassq. (DECODE_DESIGNATION): Pay attention to CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS. (ENCODE_ISO_CHARACTER_DIMENSION1): Likewise. (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. (encode_coding_iso_2022): Change the 1st arg to ENCODE_ISO_CHARACTER to a variable.
| * | (decode_coding_utf_8): Reject overlong sequences.Dave Love2002-05-271-4/+20
| | |
| * | (Qmac): Remove (duplicated) definition.Dave Love2002-05-261-2/+2
| | |
| * | Doc fixes.Dave Love2002-05-261-7/+8
| | | | | | | | | | | | (Fcoding_system_aliases): Fix return value.
| * | (setup_iso_safe_charsets): Fix arg decl for K&R.Dave Love2002-05-241-2/+4
| | | | | | | | | | | | (suffixes): Moved out of make_subsidiaries for K&R.
| * | (Fdefine_coding_system_internal): Fix previous change.Kenichi Handa2002-05-231-4/+6
| | | | | | | | | | | | (decode_coding_charset): Workaround for the bug of GCC 2.96.
| * | (decode_coding_charset): Fix previous change.Kenichi Handa2002-05-221-32/+8
| | |
| * | (decode_coding_charset): Adjusted for the change ofKenichi Handa2002-05-221-15/+100
| | | | | | | | | | | | | | | | | | | | | Fdefine_coding_system_internal. (Fdefine_coding_system_internal): For a coding system of `charset' type, store a list of charset IDs in `charset_attr_charset_valids' element of coding attributes.
| * | (emacs_mule_char): Fix previous change.Kenichi Handa2002-05-211-1/+0
| | |
| * | (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.Kenichi Handa2002-05-211-49/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (emacs_mule_char): New arg src. Delete arg `composition'. Caller changed. Handle 2-byte and 3-byte charsets correctly. (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed. (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. (DECODE_EMACS_MULE_21_COMPOSITION): Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation sequence. (decode_coding_emacs_mule): Handle composition correctly. Rewind `src' and `consumed_chars' correctly before calling emacs_mule_char. (DECODE_COMPOSITION_START): Correctly handle the case of altchar and alt&rule composition. (decode_coding_iso_2022): Handle composition correctly. (init_coding_once): Setup emacs_mule_bytes for private charsets.
| * | (encode_coding_iso_2022): If coding requires safeKenichi Handa2002-05-201-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | encoding, produce a character specified by CODING_INHIBIT_CHARACTER_SUBSTITUTION. (encode_coding_sjis): Likewise. (encode_coding_big5): Likewise. (encode_coding_charset): Likewise.
| * | (Vchar_coding_system_table, Qchar_coding_system):Dave Love2002-05-171-17/+4
| | | | | | | | | | | | | | | | | | Removed. (Fset_coding_system_priority, Fset_coding_system_priority) (Fdefine_coding_system_internal): Doc fix.
| * | (encode_coding_object): Give correct arguments otKenichi Handa2002-05-141-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | pre-write-conversion. Ignore the return value of pre-write-conversion function. Pay attention for the case that pre-write-conversion change the current buffer. If dst_object is Qt, even if coding->src_bytes is zero, allocate at least one byte to coding->destination.
| * | (decode_coding_object): Move point to coding->dst_pos beforeKenichi Handa2002-05-141-0/+1
| | | | | | | | | | | | calling post-read-conversion function.
| * | (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix theKenichi Handa2002-05-141-3/+6
| | | | | | | | | | | | | | | handling of charset list. (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
| * | Doc fixes.Dave Love2002-05-131-13/+14
| | | | | | | | | | | | | | | (Fdefine_coding_system_alias): Use names, not symbols, in coding-system-alist.
| * | (coding_set_source): Delete the local variable beg_byte.Kenichi Handa2002-05-101-6/+9
| | | | | | | | | | | | | | | | | | | | | (encode_coding_charset): Delete the local variable charset. (Fdefine_coding_system_internal): Likewise. (Fdefine_coding_system_internal): Setup attrs[coding_attr_charset_valids] correctly.
| * | (coding_inherit_eol_type)Dave Love2002-05-091-0/+3
| | | | | | | | | | | | | | | (Fset_terminal_coding_system_internal) (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
| * | (decode_coding_charset, encode_coding_charset): HandleKenichi Handa2002-05-081-14/+48
| | | | | | | | | | | | multiple charsets correctly.
| * | (coding_alloc_by_making_gap): Check the case that theKenichi Handa2002-05-071-53/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source and destination are the same correctly. (decode_coding_raw_text): Set coding->consumed_char and coding->consumed to 0. (produce_chars): If coding->chars_at_source is nonzero, update coding->consumed_char and coding->consumed before calling alloc_destination. (Fdefine_coding_system_alias): Register ALIAS in Vcoding_system_alist. (syms_of_coding): Define `no-convesion' coding system at the tail.
| * | (produce_chars): Set the variable `multibytep' correctly.Kenichi Handa2002-03-111-1/+3
| | | | | | | | | | | | (decode_coding_gap): Set coding->dst_multibyte correctly.
| * | (encode_coding_utf_8): Initialize produced_chars to 0.Kenichi Handa2002-03-081-52/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (decode_coding_utf_16): Fix converting high and low bytes to code-point. (encode_coding_utf_16): Substitute coding->default_char for non-Unicode characters. (decode_coding): Don't call record_insert here. (setup_coding_system): Initialize `surrogate' of coding->spec.utf_16 to 0. (EMIT_ONE_BYTE): Fix for multibyte case.
| * | * coding.c: Delete unused variables.Kenichi Handa2002-03-051-11/+5
| | |
| * | Completely re-written.Kenichi Handa2002-03-011-4815/+5576
| | |
* | | New directoryKenichi Handa2003-09-081-4/+2
| |/ |/|
* | Add arch taglinesMiles Bader2003-09-011-0/+2
| |
* | (decode_coding_iso2022): Initialized local variable c2.Kenichi Handa2003-08-281-2/+2
| | | | | | | | (decode_coding_sjis_big5): Likewise.
* | (run_pre_post_conversion_on_str): Use delete_all_overlays.Stefan Monnier2003-07-221-2/+3
| |
* | Include intervals.h for Fset_text_properties.Stefan Monnier2003-07-091-0/+1
| |
* | (run_pre_post_conversion_on_str): Use new type for overlays_(before|after).Stefan Monnier2003-07-091-2/+2
| |
* | _buffer_size): If coding->type isKenichi Handa2003-06-041-1/+5
| | | | | | | | coding_type_ccl, double magnification on CRLF encoding.
* | (Qutf_8): New.Dave Love2003-06-021-0/+5
| | | | | | | | (syms_of_coding): Intern it.
* | (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flagsKenichi Handa2003-05-311-5/+29
| | | | | | | | | | | | | | | | 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.
* | (ccl_coding_driver): Set ccl->eight_bit_controlKenichi Handa2003-05-301-0/+3
| | | | | | | | property before calling ccl_driver.
* | *** empty log message ***Kenichi Handa2003-05-281-0/+72
| |
* | (find_safe_codings): Remove unused var `i'.Stefan Monnier2003-05-251-2/+2
| |
* | (find_safe_codings): Fix last change.Andreas Schwab2003-05-241-2/+2
| |
* | (ENCODE_UNSAFE_CHARACTER): Adjusted for the name changeKenichi Handa2003-05-221-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | (decode_coding_string): Handle post-read-conversionKenichi Handa2003-05-191-1/+3
| | | | | | | | even if the coding doesn't require decoding.
* | (Vlast_coding_system_used): Doc fix.Dave Love2003-05-081-2/+4
| |
* | (coding_system_accept_latin_extra_p): Delete thisKenichi Handa2003-05-011-31/+68
| | | | | | | | | | | | | | 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.
* | (coding_system_accept_latin_extra_p): New function.Kenichi Handa2003-04-081-1/+25
| | | | | | | | | | (find_safe_codings): Pay attention to characters registered in latin-extra-code-table.
* | (code_convert_region): Fix last change.Kenichi Handa2003-04-081-1/+1
| |
* | (code_convert_region_unwind): SetKenichi Handa2003-04-081-6/+17
| | | | | | | | | | | | | | | | 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.
* | (Vchar_coding_system_table): Remove this variable.Kenichi Handa2003-03-181-164/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* | (Fdetect_coding_region): Fix docstring.Kenichi Handa2003-03-131-2/+5
| |
* | (Fdetect_coding_string): Fix docstring.Kenichi Handa2003-03-131-2/+5
| |
* | (CODING_ADD_COMPOSITION_COMPONENT): If the number ofKenichi Handa2003-03-071-3/+40
| | | | | | | | | | | | | | | | | | 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.
* | Trailing whitespace deleted.Juanma Barranquero2003-02-041-2/+2
| |