gptfdisk-1.0.10_utf16-to-utf8-conversion.patch 687 B

1234567891011121314151617181920
  1. From ade1729d1ca44b34678653fdf12e787e1afc5fd8 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org>
  3. Date: Wed, 13 Mar 2024 20:38:37 +0100
  4. Subject: [PATCH] gptpart.cc: Fix Unicode to UTF-8 conversion in GetDescription
  5. --- a/gptpart.cc
  6. +++ b/gptpart.cc
  7. @@ -131,7 +131,7 @@ string GPTPart::GetDescription(void) {
  8. } // if
  9. else {
  10. utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ;
  11. - utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ;
  12. + utf8 += (char) ( 0x80 | ( ( uni >> 12 ) & 0x3f ) ) ;
  13. utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ;
  14. utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
  15. } // if
  16. --
  17. 2.44.0