diff options
| author | Stephen Leake | 2019-09-10 03:37:51 -0700 |
|---|---|---|
| committer | Stephen Leake | 2019-09-10 03:37:51 -0700 |
| commit | 3d442312889ef2d14c07282d0aff6199d00cc165 (patch) | |
| tree | 74034ca2dded6ed233d0701b4cb5c10a0b5e9034 /src/coding.c | |
| parent | ac1a2e260e8ece34500b5879f766b4e54ee57b94 (diff) | |
| parent | 74e9799bd89484b8d15bdd6597c68fc00d07e7f7 (diff) | |
| download | emacs-3d442312889ef2d14c07282d0aff6199d00cc165.tar.gz emacs-3d442312889ef2d14c07282d0aff6199d00cc165.zip | |
Merge commit '74e9799bd89484b8d15bdd6597c68fc00d07e7f7'
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 2ddd34eb7b6..c0408fbce48 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9842,7 +9842,10 @@ encode_string_utf_8 (Lisp_Object string, Lisp_Object buffer, | |||
| 9842 | If BUFFER is Qnil, return a multibyte string from the decoded result. | 9842 | If BUFFER is Qnil, return a multibyte string from the decoded result. |
| 9843 | As a special case, return STRING itself in the following cases: | 9843 | As a special case, return STRING itself in the following cases: |
| 9844 | 1. STRING contains only ASCII characters. | 9844 | 1. STRING contains only ASCII characters. |
| 9845 | 2. NOCOPY, and STRING contains only valid UTF-8 sequences. | 9845 | 2. NOCOPY is true, and STRING contains only valid UTF-8 sequences. |
| 9846 | |||
| 9847 | For maximum speed, always specify NOCOPY true when STRING is | ||
| 9848 | guaranteed to contain only valid UTF-8 sequences. | ||
| 9846 | 9849 | ||
| 9847 | HANDLE-8-BIT and HANDLE-OVER-UNI specify how to handle a invalid | 9850 | HANDLE-8-BIT and HANDLE-OVER-UNI specify how to handle a invalid |
| 9848 | byte sequence. The former is for an 1-byte invalid sequence that | 9851 | byte sequence. The former is for an 1-byte invalid sequence that |