Kenichi Handa
78b82cca67
(detect_coding): Fix previous change.
2002-10-16 02:14:49 +00:00
Dave Love
b054002f4a
(Fcheck_coding_system): Doc fix.
2002-10-15 13:03:30 +00:00
Kenichi Handa
da4109a9ec
(decode_coding): Fix args to translate_chars. Pay
...
attention to Vstandard_translation_table_for_decode.
(encode_coding): Fix args to translate_chars. Pay attention to
Vstandard_translation_table_for_encode.
2002-10-15 01:15:52 +00:00
Kenichi Handa
89528eb3a7
(detect_coding_utf_8): Check incomplete byte sequence.
...
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-10 09:05:37 +00:00
Dave Love
72fe130161
(decode_coding_utf_8): Treat surrogates as invalid.
2002-10-09 22:00:36 +00:00
Kenichi Handa
b3385c2865
(code_convert_region): When we need more GAP for
...
conversion, pay attention to the case that coding->produced is not
greater than coding->consumed.
2002-10-08 00:57:59 +00:00
Kenichi Handa
3089d25c87
(decode_coding_emacs_mule): Check coding->cmp_data.
...
Only when it is non-nil, handle composition sequence.
(setup_coding_system) <0>: Don't force composition handling.
2002-09-30 06:28:31 +00:00
Richard M. Stallman
cf3b32fcfb
(run_pre_post_conversion_on_str): Save and restore Vdeactivate_mark.
2002-09-26 22:03:41 +00:00
Juanma Barranquero
5f90b4fbb2
(syms_of_coding): Fix spacing.
2002-09-06 09:02:11 +00:00
Kenichi Handa
28f67a95f7
(coding_set_destination): Fix coding->destination for
...
the case converting a region.
(encode_coding_utf_8): Encode eight-bit chars as single byte.
(encode_coding_object): Fix coding->dst_pos and
coding->dst_pos_byte for the case converting a region.
2002-08-21 12:53:56 +00:00
Gerd Moellmann
96d2e64dce
(Funencodable_char_position): Lisp_Object/int mixup.
2002-08-13 19:12:46 +00:00
Kenichi Handa
068a9dbdf6
(unencodable_char_position): New function.
...
(Funencodable_char_position): New function.
(syms_of_coding): Defsubr Funencodable_char_position.
2002-08-11 01:06:42 +00:00
Ken Raeburn
d90ed3b46f
(Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
2002-08-08 16:59:23 +00:00
Kenichi Handa
c6fb6e9828
(Fdefine_coding_system_internal): Fix category setting
...
for a coding system of type iso-2022.
2002-08-08 13:01:56 +00:00
Kenichi Handa
7f787cfd76
(Ffind_operation_coding_system): For write-region, if
...
VISIT is a filename, make it the target.
2002-08-08 12:34:27 +00:00
Kenichi Handa
9d123124fb
* coding.c (make_conversion_work_buffer): Adjusted for the change
...
of Fset_buffer_multibyte.
(encode_coding_raw_text): Increment p0 in the loop.
2002-07-31 07:09:00 +00:00
Dave Love
9542cb1fc7
Comment fix
2002-07-30 11:36:59 +00:00
Kenichi Handa
8d239c89c6
(detect_coding_iso2022): While checking a byte sequence
...
for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
it in the normal loop.
2002-07-26 11:53:25 +00:00
Kenichi Handa
48468dac87
(Ffind_coding_systems_region_internal): Detect an
...
ASCII only string correctly.
2002-07-25 02:01:39 +00:00
Kenichi Handa
7c78e5423a
(LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12,
...
LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Macros
deleted. Callers changes to use
EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
(decode_coding_ccl): Add `const' to local variables.
(consume_chars): Likewise.
(Ffind_coding_systems_region_internal): Likewise.
(Fcheck_coding_systems_region): Likewise.
2002-07-22 06:40:36 +00:00
Ken Raeburn
a424431367
(encode_eol, detect_coding, detect_eol):
...
(decode_coding, encode_coding, detect_coding_system): Source
strings now treated as const.
(decode_coding_string, encode_coding_string): Use STRING_COPYIN to
modify Lisp string contents.
2002-07-19 14:26:57 +00:00
Dave Love
6f197c07d0
(adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
2002-07-17 10:21:01 +00:00
Ken Raeburn
a90f2c3549
(Ffind_coding_systems_region_interval): Use const for
...
pointer to lisp string data.
2002-07-16 19:48:04 +00:00
Dave Love
c197f19176
(ENCODE_DESIGNATION, decode_eol)
...
(make_conversion_work_buffer, code_conversion_restore)
(Fdefine_coding_system_internal): Convert Lisp types.
(code_conversion_restore): Use EQ, not ==.
(Fencode_coding_string): Fix code_convert_string call.
2002-07-16 15:10:13 +00:00
Ken Raeburn
d5db40779d
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
...
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Dave Love
a3f6ee6d06
(Fset_coding_system_priority): Allow null arg list.
2002-07-11 23:15:52 +00:00
Juanma Barranquero
aed1337830
Use macro SPECPDL_INDEX.
2002-07-11 14:18:02 +00:00
Juanma Barranquero
f458a8e091
Fix typo.
2002-07-03 09:49:28 +00:00
Kenichi Handa
1cd6b64ce8
(detect_eol): Preserve coding->cmp_data.
2002-06-24 00:35:59 +00:00
Dave Love
5a936b4698
comments
2002-06-16 19:57:54 +00:00
Kenichi Handa
16eafb5da6
(encode_coding_emacs_mule): Pay attention to raw-8-bit chars.
...
(encode_coding_iso_2022): Likewise.
(encode_coding_sjis): Likewise.
(encode_coding_big5): Likewise.
(encode_coding_charset): Likewise.
2002-05-31 01:03:50 +00:00
Kenichi Handa
bf16eb23a0
(CODING_ISO_FLAG_USE_ROMAN): New macro
...
(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.
2002-05-30 11:02:01 +00:00
Dave Love
b0edb2c59c
(decode_coding_utf_8): Reject overlong sequences.
2002-05-27 22:19:17 +00:00
Dave Love
1965cb73a0
(Qmac): Remove (duplicated) definition.
2002-05-26 17:11:04 +00:00
Dave Love
da7db22498
Doc fixes.
...
(Fcoding_system_aliases): Fix return value.
2002-05-26 17:07:35 +00:00
Dave Love
f0064e1f74
(setup_iso_safe_charsets): Fix arg decl for K&R.
...
(suffixes): Moved out of make_subsidiaries for K&R.
2002-05-24 15:33:29 +00:00
Kenichi Handa
f9d71dcd06
(Fdefine_coding_system_internal): Fix previous change.
...
(decode_coding_charset): Workaround for the bug of GCC 2.96.
2002-05-23 10:56:58 +00:00
Kenichi Handa
acb2a96517
(decode_coding_charset): Fix previous change.
2002-05-22 11:30:00 +00:00
Kenichi Handa
c7c66a958b
(decode_coding_charset): Adjusted for the change of
...
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.
2002-05-22 11:14:45 +00:00
Kenichi Handa
0cbbb5690d
(emacs_mule_char): Fix previous change.
2002-05-21 05:09:20 +00:00
Kenichi Handa
781d7a48c4
(ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
...
(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.
2002-05-21 04:23:15 +00:00
Kenichi Handa
41cbe562e6
(encode_coding_iso_2022): If coding requires safe
...
encoding, produce a character specified by
CODING_INHIBIT_CHARACTER_SUBSTITUTION.
(encode_coding_sjis): Likewise.
(encode_coding_big5): Likewise.
(encode_coding_charset): Likewise.
2002-05-20 12:10:04 +00:00
Ken Raeburn
57d25e6f09
* coding.c (Fread_coding_system, code_convert_region1)
...
(code_convert_string1, code_convert_string_norecord)
(Ffind_operation_coding_system): Use SYMBOL_NAME instead of
XSYMBOL and name field.
2002-05-20 08:05:15 +00:00
Dave Love
1fcd6c8b99
(Vchar_coding_system_table, Qchar_coding_system):
...
Removed.
(Fset_coding_system_priority, Fset_coding_system_priority)
(Fdefine_coding_system_internal): Doc fix.
2002-05-17 16:25:23 +00:00
Kenichi Handa
ac87bbef3e
(encode_coding_object): Give correct arguments ot
...
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.
2002-05-14 13:03:45 +00:00
Kenichi Handa
c0cc7f7f49
(decode_coding_object): Move point to coding->dst_pos before
...
calling post-read-conversion function.
2002-05-14 11:47:35 +00:00
Kenichi Handa
004068e4fc
(Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
...
handling of charset list.
(encode_coding_iso_2022): Setup coding->safe_charsets in advance.
2002-05-14 08:00:53 +00:00
Dave Love
5bad079652
Doc fixes.
...
(Fdefine_coding_system_alias): Use names, not symbols, in
coding-system-alist.
2002-05-13 17:50:19 +00:00
Eli Zaretskii
9861e77766
(decode_coding) <coding_type_ccl>: If a lone CR
...
characters is carried over from the previous block of text, adjust
coding->produced to account for the extra character.
2002-05-11 21:33:13 +00:00
Andreas Schwab
eef762fc0f
(intersection): Keep the elements of the returned list
...
in the same order as in the first list.
2002-05-11 16:00:10 +00:00