diff options
author | Jason Andryuk <jandryuk@gmail.com> | 2016-02-13 00:13:33 +0100 |
---|---|---|
committer | Matt Fleming <matt@codeblueprint.co.uk> | 2016-02-16 13:49:05 +0100 |
commit | a68075908a37850918ad96b056acc9ac4ce1bd90 (patch) | |
tree | 2e8aa46386585d6a9f4744ce3d2207823660a205 /net | |
parent | efi: Add pstore variables to the deletion whitelist (diff) | |
download | linux-a68075908a37850918ad96b056acc9ac4ce1bd90.tar.xz linux-a68075908a37850918ad96b056acc9ac4ce1bd90.zip |
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions