| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
(inhibit_null_byte_detection): New variable.
(detect_coding, detect_coding_system): Don't pay attention to null bytes if
inhibit_null_byte_detection is non-zero.
(syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
<inhibit-iso-escape-detection>: Doc fix.
|
| | |
|
| |
|
|
|
|
| |
(decode_coding_utf_16, decode_coding_emacs_mule)
(decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
(decode_coding_charset): Likewise.
|
| | |
|
| |
|
|
|
| |
(Fcoding_system_put): Use QCdefault_char.
(syms_of_coding): Set QCdefault_char, not QCdefalut_char.
|
| |
|
|
| |
the work buffer.
|
| | |
|
| |
|
|
| |
vector VALIDS.
|
| |
|
|
|
| |
Qnil.
(produce_chars): Initialize consumed_chars to 0.
|
| | |
|
| |
|
|
| |
to 0.
|
| |
|
|
|
|
|
|
| |
sequence.
(DECODE_COMPOSITION_START): If the current source is the last
block, and the current composition doesn't end, regard this
sequence as invalid.
(decode_coding_iso_2022): Handle invalid composition sequence.
|
| |
|
|
| |
is a live buffer, otherwise call Fget_buffer_create.
|
| |
|
|
| |
(Fdecode_coding_string, Fencode_coding_string): Doc fix.
|
| |
|
|
| |
check Vlatin_extra_code_table.
|
| |
|
|
| |
Fget_buffer_create if it is not necessary.
|
| |
|
|
| |
non-ASCII char is found.
|
| |
|
|
| |
(detect_coding_system): Likewise.
|
| |
|
|
|
|
| |
Be sure to call setup_coding_system when a proper coding system is
found.
(detect_coding_system): Fix handling of coding->head_ascii.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(enum coding_category): Delete coding_category_utf_8, add
coding_category_utf_8_auto, coding_category_utf_8_nosig, and
coding_category_utf_8_sig.
(CATEGORY_MASK_UTF_8): Delete it.
(CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
(CATEGORY_MASK_UTF_8_SIG): New macros.
(CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
CATEGORY_MASK_UTF_8_SIG.
(CATEGORY_MASK_UTF_8): New macro.
(UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
(detect_coding_utf_8): Check BOM.
(decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
(decode_coding_utf_16): Adjusted for the change of enum
utf_bom_type.
(encode_coding_utf_16): Likewise.
(setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
(detect_coding, detect_coding_system): Handle utf-8-auto.
(Fdefine_coding_system_internal): Handle `bom' property for utf-8.
(syms_of_coding): Fix setting up of Vcoding_category_table.
|
| |
|
|
|
|
|
| |
(syms_of_coding) <coding-system-for-read, coding-system-for-write>:
<latin-extra-code-table>: Fix typos in docstrings.
(syms_of_coding) <coding-system-alist>: Doc fix.
(syms_of_coding) <translation-table-for-input>: Reflow docstring.
|
| |
|
|
|
| |
(encode_coding_object): When the dst_object is a buffer and is
different from src_object, move gap to PT.
|
| | |
|
| |
|
|
| |
Compute it differently.
|
| |
|
|
|
|
|
|
| |
(Funencodable_char_position, Fcheck_coding_systems_region,
Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
(Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region,
Ffind_operation_coding_system, Fset_coding_system_priority,
Fcoding_system_eol_type): Doc fixes.
|
| | |
|
| |
|
|
| |
has no corresponding coding system.
|
| |
|
|
| |
(Ffind_operation_coding_system): Fix typo.
|
| |
|
|
|
|
|
|
| |
(CATEGORY_MASK_UTF_16): Likewise.
(detect_coding_utf_16): Add heuristics to reject utf-16 for a
binary file.
(detect_coding): Add null-byte detection for a binary file.
(detect_coding_system): Likewise.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
obey the coding system's preference of (uni|multi)byte.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
(coding_alloc_by_making_gap): Fix the way to preserve data in the
gap.
(alloc_destination): Fix the 2nd arg to
coding_alloc_by_making_gap.
(encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
CHAR_STRING_ADVANCE.
(produce_chars): Fix for the case that the source and the
destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
instead of CHAR_STRING_ADVANCE.
(consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
STRING_CHAR_ADVANCE.
|
| |
|
|
| |
decoding in place.
|
| |
|
|
| |
change.
|
| |
|
|
|
|
|
|
| |
`dos', don't decode '\r' if that is the last in the source.
(decode_coding_utf_16, decode_coding_emacs_mule)
(decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
(decode_coding_raw_text, decode_coding_charset): Likewise.
(produce_chars): Don't decode EOL here. Use EMACS_INT.
|
| | |
|
| |
|
|
| |
Vdeactivate_mark. Delete unnecessary call of Fcurrnet_buffer.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(detect_coding_system):
* lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
(string_char_to_byte, string_byte_to_char, insert_from_gap):
* insdel.c (insert_from_gap):
* fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
(string_char_to_byte, string_byte_to_char, string_make_multibyte)
(string_to_multibyte):
* character.c (chars_in_text, multibyte_chars_in_text):
* fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
|
| | |
|
| | |
|
| |\
| |
| |
| | |
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
extra codes only when *latin_extra_code_state is nonzero.
(detect_coding_mask): If there is a NULL byte, detect the encoding as
UTF-16 or binary. If there is a Latin extra code, detect the encoding
as ISO-2022 only when no other proper encoding is found.
|
| | |
| |
| |
| |
| | |
conversion.
(encode_coding_object): Likewise.
|
| |\ \
| |/
| |
| | |
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
|
| | |\
| | |
| | |
| | | |
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
|
| | | | |
|