1. 26 Oct, 2000 1 commit
  2. 24 Oct, 2000 1 commit
  3. 22 Oct, 2000 1 commit
  4. 13 Oct, 2000 2 commits
  5. 07 Sep, 2000 3 commits
  6. 23 Aug, 2000 1 commit
  7. 18 Aug, 2000 2 commits
  8. 16 Aug, 2000 2 commits
    • Kenichi Handa's avatar
      (encode_coding): Fix the bug of not flushing ISO escape sequence at · bb10be8b
      Kenichi Handa authored
      the end of the source block.
      bb10be8b
    • Kenichi Handa's avatar
      (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted. · 73be902c
      Kenichi Handa authored
      (conversion_buffer, conversion_buffer_size): Variables deleted.
      (get_conversion_buffer): Function deleted.
      (struct conversion_buffer): New structure.
      (MAX_ALLOCA): New macro.
      (allocate_conversion_buffer): New macro.
      (extend_conversion_buffer, free_conversion_buffer): New functions.
      (ccl_coding_driver): Set coding->result.
      (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
      this is the last block of source.
      (encode_coding): Likewise.  Handle the source block as the last
      one only when the whole source text is consumed.
      (decode_coding_string): Handle the case that the output buffer is
      too small to decode the whole source text.  Use
      allocate_conversion_buffer, extend_conversion_buffer and
      free_conversion_buffer, not get_conversion_buffer.
      (encode_coding_string): Likewise.
      (init_coding): Function deleted.
      (init_coding_once): Delete code to initialize
      conversion_buffer_size.
      73be902c
  9. 11 Aug, 2000 1 commit
  10. 08 Aug, 2000 1 commit
  11. 04 Aug, 2000 2 commits
  12. 27 Jul, 2000 1 commit
    • Kenichi Handa's avatar
      (Qsafe_charsets): This variable deleted. · 05e6f5dc
      Kenichi Handa authored
      (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
      variables.
      (coding_safe_chars): New function.
      (CODING_SAFE_CHAR_P): New macro.
      (CHARSET_OK): New arg C.  Call CODING_SAFE_CHAR_P instead of
      checking safe_charsets member of the coding system.  Caller
      changed.
      (detect_coding_iso2022): New local variable safe_chars.
      (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
      safe_charsets member of the coding system.
      (decode_coding_iso2022): New local variable safe_chars.
      (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
      (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
      (ENCODE_ISO_CHARACTER): Arguments changed.  Caller changed.
      (ENCODE_UNSAFE_CHARACTER): New macro.
      (encode_coding_iso2022): New local variable safe_chars.  Check
      unsafe chars.
      (setup_coding_system): Delete the code to initialize
      coding->safe_charses
      (intersection, find_safe_codings): New functions.
      (Ffind_coding_systems_region_internal): New function.
      (syms_of_coding): Defsubr it.  Initialize Qsafe_chars,
      Qsafe_cding_system.  Make Vchar_coding_system_table a Lisp
      variable and initialize it.
      05e6f5dc
  13. 23 Jul, 2000 1 commit
  14. 19 Jul, 2000 1 commit
  15. 18 Jul, 2000 2 commits
  16. 14 Jul, 2000 1 commit
  17. 30 Jun, 2000 1 commit
  18. 26 Jun, 2000 1 commit
  19. 23 Jun, 2000 1 commit
  20. 19 Jun, 2000 1 commit
    • Kenichi Handa's avatar
      (setup_coding_system) <4>: Reset member `cr_carryover'. · aaaf0b1e
      Kenichi Handa authored
      (ccl_coding_driver): On encoding, initialize ccl->eol_type.
      (decode_eol_post_ccl): New function.
      (decode_coding): Don't detect EOL format here for CCL based coding
      systems.
      (decode_coding) <coding_type_ccl>: Handle carryovered CR.  Call
      decode_eol_post_ccl after running the CCL program.
      (code_convert_region): Don't detect EOL format here for CCL based
      coding systems.
      (decode_coding_string): Likewise.
      aaaf0b1e
  21. 15 Jun, 2000 1 commit
  22. 30 May, 2000 1 commit
  23. 29 May, 2000 1 commit
  24. 26 May, 2000 1 commit
  25. 25 May, 2000 3 commits
  26. 23 May, 2000 1 commit
  27. 19 May, 2000 1 commit
    • Kenichi Handa's avatar
      (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->resutl to · b73bfc1c
      Kenichi Handa authored
      CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
      (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
      EMIT_BYTES): New macros.
      (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
      DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
      macros deleted.
      (CHECK_CODE_RANGE_A0_FF): This macro deleted.
      (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
      check the validity of multibyte sequence.
      (decode_coding_emacs_mule): New function.
      (encode_coding_emacs_mule): New macro.
      (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
      the source.
      (DECODE_ISO_CHARACTER): Just return a character code.
      (DECODE_COMPOSITION_START): Set coding->result instead of result.
      (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
      EMIT_CHAR to produced decoded characters.  Exit the loop only by
      macros ONE_MORE_BYTE or EMIT_CHAR.  Don't handle the case of last
      block here.
      (ENCODE_ISO_CHARACTER): Don't translate character here.  Produce
      only position codes for an invalid character.
      (encode_designation_at_bol): Return new destination pointer.  5th
      arg DSTP is changed to DST.
      (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
      from the source by ONE_MORE_CHAR.  Don't handle the case of last
      block here.
      (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
      macros deleted.
      (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
      detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
      TWO_MORE_BYTES to fetch a byte from the source.
      (encode_eol): Pay attention to coding->src_multibyte.
      (detect_coding, detect_eol): Preserve members src_multibyte and
      dst_multibyte.
      (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
      (encoding_buffer_size): Set magnification to 3 for all coding
      systems that require encoding.
      (ccl_coding_driver): For decoding, be sure that the result is
      valid multibyte sequence.
      (decode_coding): Initialize coding->errors and coding->result.
      For emacs-mule, call decode_coding_emacs_mule.  For no-conversion
      and raw-text, always call decode_eol.  Handle the case of last
      block here.  If not coding->dst_multibyte, convert the resulting
      sequence to unibyte.
      (encode_coding): Initialize coding->errors and coding->result.
      For emacs-mule, call encode_coding_emacs_mule.  For no-conversion
      and raw-text, always call encode_eol.  Handle the case of last
      block here.
      (shrink_decoding_region, shrink_encoding_region): Detect cases
      that we can't skip data more rigidly.
      (code_convert_region): Setup src_multibyte and dst_multibyte
      members of coding.  For decoding, if the buffer is multibyte,
      convert the source sequence to unibyte in advance.  For encoding,
      if the buffer is multibyte, convert the resulting sequence to
      multibyte afterward.
      (run_pre_post_conversion_on_str): New function.
      (code_convert_string): Deleted and divided into the following two.
      (decode_coding_string, encode_coding_string): New functions.
      (code_convert_string1, code_convert_string_norecord): Call one of
      above.
      (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
      MAKE_NON_ASCII_CHAR.
      (Fset_terminal_coding_system_internal,
      Fset_safe_terminal_coding_system_internal): Setup src_multibyte
      and dst_multibyte members.
      (init_coding_once): Initialize iso_code_class with new enum
      ISO_control_0 and ISO_control_1.
      b73bfc1c
  28. 08 Apr, 2000 1 commit
  29. 07 Mar, 2000 1 commit
    • Kenichi Handa's avatar
      Add comments on coding-category-utf-8, · fa42c37f
      Kenichi Handa authored
      coding-category-utf-16-be, and coding-category-utf-16-le.
      (coding_category_name): Include "coding-category-utf-8",
      "coding-category-utf-16-be", and "coding-category-utf-16-le".
      (UTF_8_1_OCTET_P) (UTF_8_EXTRA_OCTET_P) (UTF_8_2_OCTET_LEADING_P)
      (UTF_8_3_OCTET_LEADING_P) (UTF_8_4_OCTET_LEADING_P)
      (UTF_8_5_OCTET_LEADING_P) (UTF_8_6_OCTET_LEADING_P): New macros.
      (detect_coding_utf_8): New function.
      (UTF_16_INVALID_P) (TF_16_HIGH_SURROGATE_P)
      (UTF_16_LOW_SURROGATE_P): New macros.
      (detect_coding_utf_16): New function.
      (detect_coding_mask): Fix bug of returning wrong mask bits in the
      case that detect_coding_XXX returns a mask not set in
      priorities[i].
      (detect_eol_type_in_2_octet_form): New function.
      (detect_eol): If cooding->category_idx is for UTF-16, call
      detect_eol_type_in_2_octet_form instead of dectect_eol_type.
      (detect_coding_system): Don't include `nil' coding-system in the
      result.
      (Fupdate_coding_systems_internal): Update all coding-categories.
      fa42c37f
  30. 02 Mar, 2000 1 commit
  31. 11 Jan, 2000 1 commit