From 48268981bbd92f4f3b43ff8494e6026282b275a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Aug 2022 23:06:25 +0700 Subject: [PATCH] pdfgrep: fix patch's whitespace --- srcpkgs/pdfgrep/patches/fix-musl.patch | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/srcpkgs/pdfgrep/patches/fix-musl.patch b/srcpkgs/pdfgrep/patches/fix-musl.patch index a31ce126138..a68d062f7fe 100644 --- a/srcpkgs/pdfgrep/patches/fix-musl.patch +++ b/srcpkgs/pdfgrep/patches/fix-musl.patch @@ -1,14 +1,12 @@ -diff --git a/src/pdfgrep.cc b/src/pdfgrep.cc -index 7f8bdf8..5283e16 100644 --- a/src/pdfgrep.cc +++ b/src/pdfgrep.cc @@ -460,7 +460,9 @@ int main(int argc, char** argv) - // Set locale to user-preference. If this locale is an UTF-8 locale, the - // regex-functions regcomp/regexec become unicode aware, which means - // e.g. that '.' will match a unicode character, not a single byte. + // Set locale to user-preference. If this locale is an UTF-8 locale, the + // regex-functions regcomp/regexec become unicode aware, which means + // e.g. that '.' will match a unicode character, not a single byte. +#ifdef __GLIBC__ - locale::global(locale("")); + locale::global(locale("")); +#endif - enum re_engine_type { - RE_POSIX = 0, + enum re_engine_type { + RE_POSIX = 0,