aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * coding.c (get_translation_table): Check Venable_character_translation.Chong Yidong2009-06-041-0/+6
|
* (record_conversion_result): Don't modifyAndreas Schwab2009-05-021-1/+2
| | | | | Vlast_code_conversion_error for successful result. (alloc_destination): Don't clobber conversion result. (Bug#1650)
* * keyboard.c (Fset_input_meta_mode): Doc fix.Chong Yidong2009-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | * dispnew.c (Fsend_string_to_terminal): Doc fix. * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes. * coding.c (Fterminal_coding_system): Doc fix. * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width) (Fx_display_pixel_height, Fx_display_planes) (Fx_display_color_cells, Fx_server_max_request_size) (Fx_server_vendor, Fx_server_version, Fx_display_screens) (Fx_display_mm_height, Fx_display_mm_width) (Fx_display_backing_store, Fx_display_visual_class) (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc fixes, replacing "terminal id" with "terminal object". (check_x_display_info): Handle terminal objects instead of terminal ids.
* (decode_coding_utf_16): Reduce charbuf_end for theKenichi Handa2009-04-211-7/+18
| | | | | | | worst case. (decode_coding_emacs_mule, decode_coding_iso_2022) (decode_coding_sjis, decode_coding_big5, decode_coding_charset): Likewise.
* (Fdetect_coding_string): Improve the docstrings.Kenichi Handa2009-03-271-0/+2
|
* (Fdetect_coding_region, Fcoding_system_priority_list): Improve theKenichi Handa2009-03-271-0/+5
| | | | docstrings.
* (CODING_ISO_CMP_STATUS): New macro.Kenichi Handa2009-03-061-537/+906
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros. (MAX_ANNOTATION_LENGTH): Defined to 5. (ADD_COMPOSITION_DATA): New arg nbytes. (emacs_mule_char): New arg cmp_status. (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it. (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c. (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c. (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c. (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise. (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise. (DECODE_EMACS_MULE_COMPOSITION_START): New macro. (EMACS_MULE_COMPOSITION_END): New macro. (emacs_mule_finish_composition): New function. (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro. (decode_coding_emacs_mule): Avoid long looking ahead while handling composition. (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes. (ENCODE_COMPOSITION_RULE): New macro. (finish_composition): New function. (MAYBE_FINISH_COMPOSITION): Call finish_composition. (DECODE_COMPOSITION_START): New implementation. (DECODE_COMPOSITION_END): Likewise. (STORE_COMPOSITION_RULE): New macro. (decode_coding_iso_2022): Avoid long looking ahead while handling composition, CTEXT extended segment, and embedded UTF-8. (setup_coding_system): For a coding of type iso-2022, reset CODING_ISO_EXTSEGMENT_LEN (coding) and CODING_ISO_EMBEDDED_UTF_8 (coding). (get_translation): Delete arguments last_block, from_nchars, to_nchars. Callers changed. (produce_chars): Don't modify charbuf. Adjusted for the change of get_translation. (produce_composition): Adjusted for the new annotation sequence. (handle_composition_annotation): Likewise. (consume_chars): Adjusted for the change of get_translation.
* (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule,Eli Zaretskii2009-02-281-13/+22
| | | | | | | decode_coding_iso_2022, encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5, decode_coding_raw_text, decode_coding_charset, setup_coding_system, decode_eol, decode_coding, consume_chars): Honor inhibit-eol-conversion. (Bug #2186)
* (detect_coding_charset): Fix last change for non-latin charsets.Jason Rumney2009-02-281-6/+7
|
* (detect_coding_charset): If not checking latin extra,Jason Rumney2009-02-281-2/+2
| | | | fail on characters between 0x80 and 0xA0. (Bug#2354)
* (detect_coding_charset): Fix change from 2008-10-21.Eli Zaretskii2009-02-281-1/+4
| | | | Also, check iso-latin-*, not only iso-8859-*.
* * coding.h (struct coding_system): Make safe_charsets a pointer toAndreas Schwab2009-02-221-17/+19
| | | | | | | | | | | | | unsigned char. * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content being 255. (SAFE_CHARSET_P): Likewise. (setup_iso_safe_charsets): Properly setup safe_charsets. (Fdefine_coding_system_internal): Likewise. (setup_coding_system): Likewise. Remove unneeded casts. (detect_coding_iso_2022): Compare Viso_2022_charset_list with CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove unneeded casts.
* (detect_coding): Don't overflow coding->carryover.Kenichi Handa2009-02-191-0/+2
|
* (detect_coding): Preserve coding->mode.Kenichi Handa2009-02-191-0/+2
|
* (Fcheck_coding_systems_region): Fix test for unibyteAndreas Schwab2009-02-161-2/+2
| | | | string.
* (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.Kenichi Handa2009-02-161-2/+5
|
* Remove spurious semicolons.Juanma Barranquero2009-02-111-1/+1
|
* (detect_coding_charset): Fix previous change.Kenichi Handa2009-02-091-1/+1
|
* (syms_of_coding) <translation-table-for-input>: Modify doc string toEli Zaretskii2009-02-071-1/+5
| | | | discourage use for character code unification.
* (coding_system_charset_list): New function.Kenichi Handa2009-02-041-0/+33
|
* (detect_eol, decode_eol): Handle text with DOS-style EOLs that also hasEli Zaretskii2009-01-301-8/+30
| | | | stray ^M characters.
* (detect_coding_system): Fix handling of null_byte_fount.Kenichi Handa2009-01-151-2/+3
|
* Fix previous changes.Kenichi Handa2009-01-141-37/+35
|
* (TWO_MORE_BYTES): New macro.Kenichi Handa2009-01-141-4/+50
| | | | | (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
* Fix Bug #876:Eli Zaretskii2009-01-101-11/+27
| | | | | | | | (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.
* Add 2009 to copyright years.Glenn Morris2009-01-081-2/+2
|
* (decode_coding_utf_8): Check byte_after_cr before breaking the loop.Kenichi Handa2009-01-071-7/+35
| | | | | | (decode_coding_utf_16, decode_coding_emacs_mule) (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) (decode_coding_charset): Likewise.
* (decode_coding): Clear chars_at_source flag when using charbuf.Jason Rumney2008-12-201-0/+2
|
* * coding.c (QCdefault_char): Rename from QCdefalut_char.Juanma Barranquero2008-12-101-3/+3
| | | | | (Fcoding_system_put): Use QCdefault_char. (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
* (make_conversion_work_buffer): Disable buffer modification hooks inChong Yidong2008-12-071-0/+4
| | | | the work buffer.
* (encode_coding_emacs_mule): Be sure to set `code'.Kenichi Handa2008-12-031-2/+4
|
* (decode_coding_charset): Check type of an element ofKenichi Handa2008-12-031-1/+1
| | | | vector VALIDS.
* (detect_coding_system): Initialize utf_16_le_eol to -1, val toKenichi Handa2008-12-031-5/+4
| | | | | Qnil. (produce_chars): Initialize consumed_chars to 0.
* (decode_coding_utf_8): Likewise.Kenichi Handa2008-12-031-1/+1
|
* (decode_coding_utf_16): Initialize consumed_chars_baseKenichi Handa2008-12-031-1/+1
| | | | to 0.
* (detect_coding_iso_2022): Reject invalid compositionKenichi Handa2008-11-211-16/+57
| | | | | | | | 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.
* (make_conversion_work_buffer): Check that Vcode_conversion_reused_workbufNoah Friedman2008-10-231-3/+3
| | | | is a live buffer, otherwise call Fget_buffer_create.
* (Fencode_coding_region, Fdecode_coding_region)Eli Zaretskii2008-10-211-6/+8
| | | | (Fdecode_coding_string, Fencode_coding_string): Doc fix.
* (detect_coding_charset): For iso-8859-* coding systems,Kenichi Handa2008-10-211-3/+13
| | | | check Vlatin_extra_code_table.
* (make_conversion_work_buffer): Avoid callingKenichi Handa2008-09-161-3/+3
| | | | Fget_buffer_create if it is not necessary.
* (detect_coding_utf_8): Set detect_info->found only whenKenichi Handa2008-07-091-1/+2
| | | | non-ASCII char is found.
* (detect_coding): Fix previous change.Kenichi Handa2008-06-051-4/+6
| | | | (detect_coding_system): Likewise.
* (detect_coding): Fix handling of coding->head_ascii.Kenichi Handa2008-06-041-39/+43
| | | | | | Be sure to call setup_coding_system when a proper coding system is found. (detect_coding_system): Fix handling of coding->head_ascii.
* (CODING_UTF_8_BOM): New macro.Kenichi Handa2008-05-291-25/+159
| | | | | | | | | | | | | | | | | | | | | | | (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.
* (Fdecode_coding_region, Fencode_coding_region, Fencode_coding_string):Juanma Barranquero2008-05-281-11/+11
| | | | | | | (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_raw_text): Fix previous change.Kenichi Handa2008-05-281-11/+16
| | | | | (encode_coding_object): When the dst_object is a buffer and is different from src_object, move gap to PT.
* (encode_coding_raw_text): Fix last change.Stefan Monnier2008-05-271-1/+3
|
* (encode_coding_raw_text): Set coding->produced_char for all branches.Stefan Monnier2008-05-271-4/+1
| | | | Compute it differently.
* (Fcoding_system_p): Rename argument to match docstring.Juanma Barranquero2008-05-191-25/+26
| | | | | | | | (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.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|