pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/pdfgrep/patches Add patches/



details:   https://anonhg.NetBSD.org/pkgsrc/rev/51e9f1d25dfb
branches:  trunk
changeset: 366313:51e9f1d25dfb
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Aug 11 01:00:25 2017 +0000

description:
Add patches/

diffstat:

 textproc/pdfgrep/patches/patch-src_pdfgrep.cc |  18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r 37ce3a17d821 -r 51e9f1d25dfb textproc/pdfgrep/patches/patch-src_pdfgrep.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/pdfgrep/patches/patch-src_pdfgrep.cc     Fri Aug 11 01:00:25 2017 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_pdfgrep.cc,v 1.1 2017/08/11 01:00:25 ryoon Exp $
+
+* Run on non-C locale NetBSD environment
+
+--- src/pdfgrep.cc.orig        2017-03-04 08:11:53.000000000 +0000
++++ src/pdfgrep.cc
+@@ -428,7 +428,11 @@ 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.
++      /* GCC from NetBSD base does not support C++ locale.
++         See: http://gnats.netbsd.org/48291 */
++#if !defined(__NetBSD__)
+       locale::global(locale(""));
++#endif
+ 
+       enum re_engine_type {
+               RE_POSIX = 0,



Home | Main Index | Thread Index | Old Index