diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2024-03-15 22:51:05 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2024-03-15 22:51:05 -0400 |
commit | 0e13e907ced9981024d0bdec7e2dc1b2081c9cbe (patch) | |
tree | 7d1eb207b1d001653cf168b4879dad6d946c48c4 | |
parent | 53ac725a88a616b9f3395500d6e520aa04742fa5 (diff) | |
download | gptfdisk-upstream-master.tar.gz |
Fixed bug in display of Unicode characters greater than 0x10000upstream-master
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | gptpart.cc | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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): ------------------- @@ -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 |