Differences From Artifact [512f05d1ec]:
- File src/encodings/koi8-r.m — part of check-in [da8cd1c0ad] at 2017-09-09 22:21:37 on branch trunk — src/encodings: Rename a few files (user: js, size: 5427) [annotate] [blame] [check-ins using]
- File src/encodings/koi8_r.m — part of check-in [37d2a81754] at 2017-05-07 21:25:56 on branch trunk — Use char{16,32}_t instead of of_char{16,32}_t (user: js, size: 5427) [annotate] [blame] [check-ins using]
To Artifact [e77fc0ad5b]:
- File src/encodings/koi8-r.m — part of check-in [a06354b42a] at 2017-10-22 15:05:39 on branch trunk — Make Apple GCC with -Wshadow happy (user: js, size: 5425) [annotate] [blame] [check-ins using]
- File src/encodings/koi8_r.m — part of check-in [31c0f5b89e] at 2017-10-22 14:09:23 on branch 0.90 — Make Apple GCC with -Wshadow happy (user: js, size: 5425) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
119 120 121 122 123 124 125 | of_unicode_to_koi8_r(const of_unichar_t *input, unsigned char *output, size_t length, bool lossy) { for (size_t i = 0; i < length; i++) { of_unichar_t c = input[i]; if OF_UNLIKELY (c > 0x7F) { | | | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | of_unicode_to_koi8_r(const of_unichar_t *input, unsigned char *output, size_t length, bool lossy) { for (size_t i = 0; i < length; i++) { of_unichar_t c = input[i]; if OF_UNLIKELY (c > 0x7F) { uint8_t idx; if OF_UNLIKELY (c > 0xFFFF) { if (lossy) { output[i] = '?'; continue; } else return false; |
︙ | ︙ |