Subject | Hash | Author | Date (UTC) |
---|---|---|---|
isutf8: Reject UTF-8-encoded UTF-16 surrogates. Closes: #525301 (Thanks, Jakub Wilk and liw) | a250ae89f37849be1caf204a07d2e4e563503390 | Joey Hess | 2009-05-05 19:06:34 |
ifdata: Don't assume that all interface names are 6 characters or less, for instance "wmaster0" is longer. Increase the limit to 20 characters. Closes: #526654 (Thanks, Alan Pope) | 0aa82b9e712f62170d7f433b9fb181cdc6a60a92 | Joey Hess | 2009-05-03 00:41:06 |
releasing version 0.34 | 3e03d4c45318bb0978e65850ec7f56bbb210d4f1 | Joey Hess | 2008-12-11 20:12:53 |
vipe: Avoid dying on empty input. Thanks, Anders Kaseorg Closes: #508491 | 931de139ed875e6c593d0bdb692fccf181da46bb | Joey Hess | 2008-12-11 20:11:19 |
releasing version 0.33 | 6f2bc6bff8786f96265b170249b4cd4bc3e99247 | Joey Hess | 2008-10-31 21:03:08 |
Fix zrun breakage introduced last version. Closes: #504129 | 0815e5fa8d11ea9bd235d536e02e108ab1cecb43 | Joey Hess | 2008-10-31 21:01:02 |
changelog | 61290da144f6138269f3050388ed18b17038d580 | Joey Hess | 2008-10-28 02:41:30 |
Support installing moreutils into prefixes other than /usr | 220a73731d4506912e8ec2ecca2e33abdf4e01fe | Evan Broder | 2008-10-28 01:58:48 |
Fix pod error in vidir(1). | 1e73fbbb25bc43999320b2c9c5679ab0c8f3b528 | Joey Hess | 2008-10-27 03:51:00 |
zrun: Can be linked to zsomeprog to run the equivilant of zrun someprog. | 9c2bf6a2f6885d4f6373b5a682d10c40c84b4e66 | Joey Hess | 2008-09-27 22:05:33 |
typo | 39bc764104ad5268b9312a7ff49ff10d7907dd6b | Joey Hess | 2008-07-09 17:06:26 |
releasing version 0.31 | 8b407b19baf9819f186142653b77ed63977e244e | Joey Hess | 2008-06-29 03:23:15 |
ts: Support displaying fractional seconds via a "%.S" conversion specification. Closes: #482789 | 729a9ec3a9be3b611a180c08daf9191c20506a09 | Joey Hess | 2008-05-28 18:32:48 |
pee.1: Document difference with tee in stdout. | 478d7c32b226dcdd364a7a669115a0e093545d68 | Joey Hess | 2008-05-28 17:42:18 |
releasing version 0.30 | 8a49d33f795107df284a8ca1a1ad8524c3e88865 | Joey Hess | 2008-05-14 23:42:14 |
ifne: If no command is specified, print usage information. | 99e7bc2550ca8fc57af19410e28958e46a2d6f15 | Joey Hess | 2008-05-12 20:04:36 |
Added -n option to ifne. | 4425bfd45edfc4d2be18ce6d2a2eeb7ab80f7a6c | Vicho | 2008-05-01 10:17:45 |
update | 8c45ad625cf68e210387a08611f775093c3ea49e | Joey Hess | 2008-05-10 22:05:05 |
typo | b02ae7c9f2237b4e09bceae4b42ec76f0a458ea0 | Joey Hess | 2008-05-10 22:05:01 |
eh, I didn't mean to revert that | 57961470b587d8e26202ea15beec018dbd07bc6c | Joey Hess | 2008-05-10 22:02:55 |
File | Lines added | Lines deleted |
---|---|---|
check-isutf8 | 3 | 0 |
debian/changelog | 2 | 0 |
isutf8.c | 9 | 1 |
File check-isutf8 changed (mode: 100755) (index 3abb315..83a4eed) | |||
... | ... | check 1 '\xc2' | |
39 | 39 | check 1 '\xc2\x20' | check 1 '\xc2\x20' |
40 | 40 | check 1 '\x20\xc2' | check 1 '\x20\xc2' |
41 | 41 | check 1 '\300\200' | check 1 '\300\200' |
42 | check 1 '\xed\xa0\x88\xed\xbd\x85' # UTF-16 surrogates | ||
43 | check 1 '\xef\xbf\xbe' # 0xFFFE | ||
44 | check 1 '\xef\xbf\xbf' # 0xFFFF | ||
42 | 45 | ||
43 | 46 | exit $failed | exit $failed |
File debian/changelog changed (mode: 100644) (index aac1f3f..7b638cb) | |||
... | ... | moreutils (0.35) UNRELEASED; urgency=low | |
3 | 3 | * ifdata: Don't assume that all interface names are 6 characters or less, | * ifdata: Don't assume that all interface names are 6 characters or less, |
4 | 4 | for instance "wmaster0" is longer. Increase the limit to 20 characters. | for instance "wmaster0" is longer. Increase the limit to 20 characters. |
5 | 5 | Closes: #526654 (Thanks, Alan Pope) | Closes: #526654 (Thanks, Alan Pope) |
6 | * isutf8: Reject UTF-8-encoded UTF-16 surrogates. Closes: #525301 | ||
7 | (Thanks, Jakub Wilk and liw) | ||
6 | 8 | ||
7 | 9 | -- Joey Hess <joeyh@debian.org> Sat, 02 May 2009 20:40:23 -0400 | -- Joey Hess <joeyh@debian.org> Sat, 02 May 2009 20:40:23 -0400 |
8 | 10 |
File isutf8.c changed (mode: 100644) (index 4306c7d..c5f5eeb) | |||
... | ... | static unsigned long decodeutf8(unsigned char *buf, int nbytes) | |
127 | 127 | return INVALID_CHAR; | return INVALID_CHAR; |
128 | 128 | u = (u << 6) | (buf[j] & 0x3f); | u = (u << 6) | (buf[j] & 0x3f); |
129 | 129 | } | } |
130 | |||
131 | /* Conforming UTF-8 cannot contain codes 0xd800–0xdfff (UTF-16 | ||
132 | surrogates) as well as 0xfffe and 0xffff. */ | ||
133 | if (u >= 0xD800 && u <= 0xDFFF) | ||
134 | return INVALID_CHAR; | ||
135 | if (u == 0xFFFE || u == 0xFFFF) | ||
136 | return INVALID_CHAR; | ||
137 | |||
130 | 138 | return u; | return u; |
131 | 139 | } | } |
132 | 140 | ||
... | ... | static int is_utf8_byte_stream(FILE *file, char *filename, int quiet) { | |
145 | 153 | int nbytes, nbytes2; | int nbytes, nbytes2; |
146 | 154 | int c; | int c; |
147 | 155 | unsigned long code; | unsigned long code; |
148 | unsigned long line, col, byteoff; | ||
156 | unsigned long line, col, byteoff; | ||
149 | 157 | ||
150 | 158 | nbytes = 0; | nbytes = 0; |
151 | 159 | line = 1; | line = 1; |