aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRod Smith <rodsmith@rodsbooks.com>2024-03-15 22:51:05 -0400
committerRod Smith <rodsmith@rodsbooks.com>2024-03-15 22:51:05 -0400
commit0e13e907ced9981024d0bdec7e2dc1b2081c9cbe (patch)
tree7d1eb207b1d001653cf168b4879dad6d946c48c4
parent53ac725a88a616b9f3395500d6e520aa04742fa5 (diff)
downloadgptfdisk-upstream-master.tar.gz
Fixed bug in display of Unicode characters greater than 0x10000upstream-master
-rw-r--r--NEWS6
-rw-r--r--gptpart.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 1eea0fe..cfee080 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+1.0.11 (?/??/202?):
+-------------------
+
+- Fixed bug that caused Unicode characters greater than 0x10000 to be
+ displayed incorrectly. Fix courtesy of Ulrich Müller.
+
1.0.10 (2/19/2024):
-------------------
diff --git a/gptpart.cc b/gptpart.cc
index 5fe7b5a..78f1206 100644
--- a/gptpart.cc
+++ b/gptpart.cc
@@ -131,7 +131,7 @@ string GPTPart::GetDescription(void) {
} // if
else {
utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ;
- utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ;
+ utf8 += (char) ( 0x80 | ( ( uni >> 12 ) & 0x3f ) ) ;
utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ;
utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
} // if