Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3a8406e1
Commit
3a8406e1
authored
Dec 03, 2008
by
Kenichi Handa
Browse files
(decode_coding_utf_16): Initialize consumed_chars_base
to 0.
parent
93730342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/coding.c
src/coding.c
+1
-1
No files found.
src/ChangeLog
View file @
3a8406e1
2008-12-03 Kenichi Handa <handa@m17n.org>
* coding.c (decode_coding_utf_16): Initialize consumed_chars_base
to 0.
2008-12-02 Chong Yidong <cyd@stupidchicken.com>
* keyboard.c (make_lispy_position): Only use PT if the selected
...
...
src/coding.c
View file @
3a8406e1
...
...
@@ -1637,7 +1637,7 @@ decode_coding_utf_16 (coding)
const unsigned char *src_base;
int *charbuf = coding->charbuf + coding->charbuf_used;
int *charbuf_end = coding->charbuf + coding->charbuf_size;
int consumed_chars = 0, consumed_chars_base;
int consumed_chars = 0, consumed_chars_base
= 0
;
int multibytep = coding->src_multibyte;
enum utf_bom_type bom = CODING_UTF_16_BOM (coding);
enum utf_16_endian_type endian = CODING_UTF_16_ENDIAN (coding);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment