git: DragonFly_RELEASE_6_4 gpt(8): Fix bugs in utf8_to_utf16()
Aaron LI
aly at crater.dragonflybsd.org
Sat Feb 21 17:07:06 PST 2026
commit 184a1026b15ae58b0c31836340dcb17049f8542f
Author: Aaron LI <aly at aaronly.me>
Date: Wed Jan 21 14:02:54 2026 +0800
gpt(8): Fix bugs in utf8_to_utf16()
- The 'utfchar' was incorrectly reinitialized to zero on every loop
iteration and thus destroyed the decoding state of multi-byte UTF-8
sequences. Fix it.
- Fix the endianness by adding the missing htole16() calls.
Obtained-from: NetBSD
Summary of changes:
sbin/gpt/gpt.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/184a1026b15ae58b0c31836340dcb17049f8542f
--
DragonFly BSD source repository
More information about the Commits
mailing list