Jason Andryuk
a68075908a
lib/ucs2_string: Correct ucs2 -> utf8 conversion
...
The comparisons should be >= since 0x800 and 0x80 require an additional bit
to store.
For the 3 byte case, the existing shift would drop off 2 more bits than
intended.
For the 2 byte case, there should be 5 bits bits in byte 1, and 6 bits in
byte 2.
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Cc: Peter Jones <pjones@redhat.com>
Cc: Matthew Garrett <mjg59@coreos.com>
Cc: "Lee, Chun-Yi" <jlee@suse.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
2016-02-16 12:49:05 +00:00
..
2015-12-23 18:20:01 +08:00
2015-11-17 22:00:39 +08:00
2015-12-01 13:52:25 +11:00
2015-09-10 13:29:01 -07:00
2016-01-11 14:39:17 -08:00
2015-09-10 13:29:01 -07:00
2015-11-23 09:44:58 +01:00
2016-01-27 15:40:59 +01:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-10-05 04:49:54 +01:00
2015-10-21 15:18:36 +01:00
2015-11-16 14:42:12 -05:00
2016-01-14 16:00:49 -08:00
2016-02-05 18:10:40 -08:00
2016-01-04 10:26:58 -05:00
2015-10-23 17:55:10 +09:00
2015-12-22 17:10:18 -06:00
2015-11-06 17:50:42 -08:00
2015-11-06 17:50:42 -08:00
2015-11-06 17:50:42 -08:00
2016-01-20 17:09:18 -08:00
2015-11-05 16:34:48 -08:00
2015-12-06 20:42:19 -05:00
2016-01-19 15:26:55 -05:00
2015-11-06 17:50:42 -08:00
2016-01-16 11:17:27 -08:00
2016-01-23 18:45:06 -08:00
2016-02-09 17:59:38 -05:00
2015-11-05 19:34:48 -08:00
2016-02-11 18:35:48 -08:00
2016-02-07 22:18:47 -08:00
2015-11-06 17:50:42 -08:00
2015-09-10 13:29:01 -07:00
2016-01-22 11:58:43 -08:00
2016-01-15 17:56:32 -08:00
2015-11-06 17:50:42 -08:00
2015-11-25 09:22:02 -07:00
2016-01-23 18:45:06 -08:00
2015-12-03 11:49:23 -05:00
2015-10-03 16:40:51 +01:00
2015-10-08 05:26:36 -07:00
2015-09-08 14:35:59 -07:00
2015-11-06 17:50:42 -08:00
2015-11-23 09:44:58 +01:00
2016-02-03 08:28:43 -08:00
2015-10-08 05:26:38 -07:00
2016-01-21 17:20:51 -08:00
2015-12-31 18:20:10 -05:00
2016-02-08 10:15:17 -08:00
2015-12-23 14:27:20 -05:00
2015-09-08 15:35:28 -07:00
2016-01-20 17:09:18 -08:00
2015-11-10 16:32:11 -08:00
2015-12-17 10:05:19 -08:00
2015-12-17 10:05:19 -08:00
2015-12-18 16:04:51 -05:00
2016-01-07 13:44:22 -07:00
2016-01-20 17:09:18 -08:00
2015-11-05 19:34:48 -08:00
2016-01-16 11:17:29 -08:00
2015-11-23 12:36:08 -05:00
2015-09-10 13:29:01 -07:00
2016-02-03 08:28:43 -08:00
2016-01-20 17:09:18 -08:00
2016-01-20 17:09:18 -08:00
2016-02-16 12:49:05 +00:00
2016-02-11 18:35:48 -08:00