gptfdisk rebuild
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -66,7 +66,7 @@
|
||||
# Default/Linux settings....
|
||||
STRIP?=strip
|
||||
#CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16
|
||||
-CXXFLAGS+=-O2 -Wall -D_FILE_OFFSET_BITS=64
|
||||
+CXXFLAGS+=-D_FILE_OFFSET_BITS=64
|
||||
LDFLAGS+=
|
||||
LDLIBS+=-luuid #-licuio -licuuc
|
||||
FATBINFLAGS=
|
||||
Reference in New Issue
Block a user