diff options
| author | Kenichi Handa | 2009-08-27 07:30:51 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-08-27 07:30:51 +0000 |
| commit | 60afa08d413e55222b84757d1ba62755f1596131 (patch) | |
| tree | 8ea4eefbac5a456c2f1cd6397a5606eac51a33ea /src/coding.c | |
| parent | 652cc1a2e69a6d7d2663f9039c916a53928ed35d (diff) | |
| download | emacs-60afa08d413e55222b84757d1ba62755f1596131.tar.gz emacs-60afa08d413e55222b84757d1ba62755f1596131.zip | |
(encode_coding_utf_16): Fix checking of an Unicode character.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index a8f84378e66..388b4b833c4 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1858,7 +1858,7 @@ encode_coding_utf_16 (coding) | |||
| 1858 | { | 1858 | { |
| 1859 | ASSURE_DESTINATION (safe_room); | 1859 | ASSURE_DESTINATION (safe_room); |
| 1860 | c = *charbuf++; | 1860 | c = *charbuf++; |
| 1861 | if (c >= MAX_UNICODE_CHAR) | 1861 | if (c > MAX_UNICODE_CHAR) |
| 1862 | c = coding->default_char; | 1862 | c = coding->default_char; |
| 1863 | 1863 | ||
| 1864 | if (c < 0x10000) | 1864 | if (c < 0x10000) |