summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2020-08-11 20:35:15 +0200
committerCraig Andrews <candrews@gentoo.org>2020-08-11 14:44:26 -0400
commit8da5cc677912344213aad9597bd84392055fa3e5 (patch)
treeec18edb8886c24ec4e0eb36076f4a18fc7c5b5f0 /dev-libs/libfmt
parentnet-wireless/iwd: Stabilize 1.8 arm64, #736541 (diff)
downloadgentoo-8da5cc677912344213aad9597bd84392055fa3e5.tar.gz
gentoo-8da5cc677912344213aad9597bd84392055fa3e5.tar.bz2
gentoo-8da5cc677912344213aad9597bd84392055fa3e5.zip
dev-libs/libfmt: remove unused patch(es)
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17087 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs/libfmt')
-rw-r--r--dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch b/dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch
deleted file mode 100644
index 2ce27c83e622..000000000000
--- a/dev-libs/libfmt/files/libfmt-6.2.0-unsigned-char-strings-in-printf.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 7d01859ef16e6b65bc023ad8bebfedecb088bf81 Mon Sep 17 00:00:00 2001
-From: Victor Zverovich <viz@fb.com>
-Date: Wed, 8 Apr 2020 12:32:34 -0700
-Subject: [PATCH] Fix handling of unsigned char strings in printf
-
----
- include/fmt/core.h | 8 ++++++++
- test/printf-test.cc | 6 ++++++
- 2 files changed, 14 insertions(+)
-
-diff --git a/include/fmt/core.h b/include/fmt/core.h
-index 6df2875ac..dc10722bf 100644
---- a/include/fmt/core.h
-+++ b/include/fmt/core.h
-@@ -972,6 +972,14 @@ template <typename Context> struct arg_mapper {
- static_assert(std::is_same<char_type, char>::value, "invalid string type");
- return reinterpret_cast<const char*>(val);
- }
-+ FMT_CONSTEXPR const char* map(signed char* val) {
-+ const auto* const_val = val;
-+ return map(const_val);
-+ }
-+ FMT_CONSTEXPR const char* map(unsigned char* val) {
-+ const auto* const_val = val;
-+ return map(const_val);
-+ }
-
- FMT_CONSTEXPR const void* map(void* val) { return val; }
- FMT_CONSTEXPR const void* map(const void* val) { return val; }
-diff --git a/test/printf-test.cc b/test/printf-test.cc
-index 5aaa27b13..545e02aab 100644
---- a/test/printf-test.cc
-+++ b/test/printf-test.cc
-@@ -447,6 +447,12 @@ TEST(PrintfTest, String) {
- EXPECT_PRINTF(L" (null)", L"%10s", null_wstr);
- }
-
-+TEST(PrintfTest, UCharString) {
-+ unsigned char str[] = "test";
-+ unsigned char* pstr = str;
-+ EXPECT_EQ("test", fmt::sprintf("%s", pstr));
-+}
-+
- TEST(PrintfTest, Pointer) {
- int n;
- void* p = &n;