diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-07 18:30:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-07 18:30:54 +0100 |
commit | 4d190a87291ace8503ad92c6b049d14660a14c72 (patch) | |
tree | 3c46c3d158d4e77a4c12d283a17bade041a9859f /sys-apps/gptfdisk/files/gptfdisk-1.0.10_utf16-to-utf8-conversion.patch | |
parent | 3c7931f8c6c90aa813912d87c684d742e0c29a05 (diff) |
gentoo auto-resync : 07:04:2024 - 18:30:54
Diffstat (limited to 'sys-apps/gptfdisk/files/gptfdisk-1.0.10_utf16-to-utf8-conversion.patch')
-rw-r--r-- | sys-apps/gptfdisk/files/gptfdisk-1.0.10_utf16-to-utf8-conversion.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-apps/gptfdisk/files/gptfdisk-1.0.10_utf16-to-utf8-conversion.patch b/sys-apps/gptfdisk/files/gptfdisk-1.0.10_utf16-to-utf8-conversion.patch new file mode 100644 index 000000000000..f30eb593799f --- /dev/null +++ b/sys-apps/gptfdisk/files/gptfdisk-1.0.10_utf16-to-utf8-conversion.patch @@ -0,0 +1,19 @@ +From ade1729d1ca44b34678653fdf12e787e1afc5fd8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@gentoo.org> +Date: Wed, 13 Mar 2024 20:38:37 +0100 +Subject: [PATCH] gptpart.cc: Fix Unicode to UTF-8 conversion in GetDescription + +--- 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 +-- +2.44.0 + |