Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fbdc1721
Commit
fbdc1721
authored
Mar 16, 2010
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding.c (decode_coding_ccl): Fix previous change for the multibyte case.
parent
35cd7cd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
src/ChangeLog
src/ChangeLog
+5
-0
src/coding.c
src/coding.c
+10
-7
No files found.
src/ChangeLog
View file @
fbdc1721
2010-03-16 Kenichi Handa <handa@m17n.org>
* coding.c (decode_coding_ccl): Fix previous change for the
multibyte case.
2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
* editfns.c (Fformat): Account for string precision when computing
...
...
src/coding.c
View file @
fbdc1721
...
...
@@ -5245,7 +5245,7 @@ decode_coding_ccl (coding)
int multibytep = coding->src_multibyte;
struct ccl_program *ccl = &coding->spec.ccl->ccl;
int source_charbuf[1024];
int source_byteidx[102
4
];
int source_byteidx[102
5
];
Lisp_Object attrs, charset_list;
CODING_GET_INFO (coding, attrs, charset_list);
...
...
@@ -5256,11 +5256,14 @@ decode_coding_ccl (coding)
int i = 0;
if (multibytep)
while (i < 1024 && p < src_end)
{
source_byteidx[i] = p - src;
source_charbuf[i++] = STRING_CHAR_ADVANCE (p);
}
{
while (i < 1024 && p < src_end)
{
source_byteidx[i] = p - src;
source_charbuf[i++] = STRING_CHAR_ADVANCE (p);
}
source_byteidx[i] = p - src;
}
else
while (i < 1024 && p < src_end)
source_charbuf[i++] = *p++;
...
...
@@ -5270,7 +5273,7 @@ decode_coding_ccl (coding)
ccl_driver (ccl, source_charbuf, charbuf, i, charbuf_end - charbuf,
charset_list);
charbuf += ccl->produced;
if (multibytep
&& ccl->consumed < i
)
if (multibytep)
src += source_byteidx[ccl->consumed];
else
src += ccl->consumed;
...
...
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