aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (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
|
* (detect_coding_iso_2022): Ignore a coding category thatKenichi Handa2008-05-141-0/+2
| | | | has no corresponding coding system.
* * coding.c (detect_coding_emacs_mule)Michael Albinus2008-04-081-9/+9
| | | | (Ffind_operation_coding_system): Fix typo.
* (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.Kenichi Handa2008-04-031-108/+205
| | | | | | | | (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.
* (decode_coding_object): Fix last change.Stefan Monnier2008-03-271-1/+1
|
* (decode_coding_object): Revert part of last change.Stefan Monnier2008-03-271-1/+4
|
* (decode_coding_object): Fix last change.Stefan Monnier2008-03-271-2/+2
|
* (decode_coding_object): When not decoding into a buffer,Stefan Monnier2008-03-251-2/+2
| | | | obey the coding system's preference of (uni|multi)byte.
* (CHAR_STRING_ADVANCE_NO_UNIFY)Kenichi Handa2008-03-161-20/+105
| | | | | | | | | | | | | | | (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.
* (decode_coding_object): Inhibit gap shrinking whileAndreas Schwab2008-03-031-0/+2
| | | | decoding in place.
* (decode_coding_big5, produce_chars): Fix typos in lastAndreas Schwab2008-03-021-3/+3
| | | | change.
* (decode_coding_utf_8): When eol-type of CODING isKenichi Handa2008-03-021-85/+119
| | | | | | | | `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.
* Fix comment typo.Glenn Morris2008-02-211-1/+1
|
* (decode_coding_object, encode_coding_object): PreserveKenichi Handa2008-02-141-8/+15
| | | | Vdeactivate_mark. Delete unnecessary call of Fcurrnet_buffer.
* * coding.c (coding_set_destination): Use BEG_BYTE rather than hardcoding 1.Stefan Monnier2008-02-121-3/+4
| | | | | | | | | | | | (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.
* (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".Jan Djärv2008-02-071-2/+2
|
* (decode_eol): Pay attention to coding->dst_multibyte.Kenichi Handa2008-02-051-1/+4
|
* Merge from emacs--devo--0Miles Bader2008-01-301-1/+3
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
| * (select-safe-coding-system-function): Doc fix.Glenn Morris2008-01-161-1/+3
| |
| * (detect_coding_mask): Fix previous change.Kenichi Handa2008-01-111-3/+7
| |
| * (detect_coding_iso2022): New arg latin_extra_code_state. Allow LatinKenichi Handa2008-01-091-24/+89
| | | | | | | | | | | | | | 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.
* | (decode_coding_object): Adjuste marker positions afterKenichi Handa2008-01-181-0/+68
| | | | | | | | | | conversion. (encode_coding_object): Likewise.
* | Merge from emacs--devo--0Miles Bader2008-01-091-2/+2
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
| * Merge from emacs--rel--22Miles Bader2008-01-081-2/+2
| |\ | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| | * Add 2008 to copyright years.Glenn Morris2008-01-081-2/+2
| | |
| | * (Qcompletion_ignore_case): New external Lisp_Object.Glenn Morris2007-10-171-1/+9
| | | | | | | | | | | | (Fread_coding_system): Ignore case of user input.
| * | * coding.c (detect_coding, Fupdate_coding_systems_internal):Stefan Monnier2007-11-191-2/+2
| | | | | | | | | | | | | | | * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE Since we do not want to see internal Lisp_*fwd objects here.
* | | (Fdecode_coding_region): Fix typo in docstring.Kenichi Handa2007-11-061-1/+1
| | |
* | | Merge from emacs--devo--0Miles Bader2007-10-191-2/+10
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 890-898) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 122-128) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 257-258) - Merge from emacs--rel--22 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-270
| * | (Qcompletion_ignore_case): New external Lisp_Object.Glenn Morris2007-10-171-1/+9
| | | | | | | | | | | | (Fread_coding_system): Ignore case of user input.
| * | * xfns.c (Fx_create_frame, Fx_display_list):Stefan Monnier2007-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * window.c (window_fixed_size_p, enlarge_window, shrink_window_lowest_first): * macterm.c (init_font_name_table): * macfns.c (Fx_create_frame, Fx_display_list): * lread.c (close_load_descs): * keyboard.c (read_char_x_menu_prompt): * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent): * coding.c (code_convert_region_unwind): Test the type of an object rather than just !NILP before extracting data from it.
* | | Fix up multi-tty mergeMiles Bader2007-10-121-12/+10
| | | | | | | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-261 Creator: Stefan Monnier <monnier@iro.umontreal.ca>
* | | Merge from emacs--devo--0Miles Bader2007-10-111-27/+30
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 866-879) - Merge multi-tty branch - Update from CVS - Merge from emacs--rel--22 Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-257
| * | (detect_eol_type, detect_eol_type_in_2_octet_form):Michaël Cadilhac2007-09-191-4/+4
| | | | | | | | | | | | Fix a C warning regarding variable constness.
| * | Merge from emacs--devo--0Miles Bader2007-07-311-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 824-838) - Update from CVS - Merge from emacs--rel--22 - Remove lisp/erc/erc-nicklist.el - Update some .arch-inventory files - Fix void function definition error in cus-edit.el - Restore lisp/emacs-lisp/cl-loaddefs.el * emacs--rel--22 (patch 70-83) - Update from CVS - Remove lisp/erc/erc-nicklist.el - Update some .arch-inventory files - Indicate that emacs--devo--0--patch-834 does not need to be applied - Merge from gnus--rel--5.10 - Restore lisp/emacs-lisp/cl-loaddefs.el * gnus--rel--5.10 (patch 239-241) - Merge from emacs--devo--0 - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-28
| * \ \ Merge from emacs--devo--0Miles Bader2007-07-241-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 814-823) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 59-69) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 237-238) - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-26