public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: "Jason Pyeron" <jpyeron@pdinc.us>
To: <cygwin-apps@cygwin.com>
Subject: RE: pdfgrep [ITA]
Date: Sun, 9 May 2021 17:12:51 -0400	[thread overview]
Message-ID: <01af01d74518$12273510$36759f30$@pdinc.us> (raw)
In-Reply-To: <4003269c-9c8b-7707-d3a8-8f6f5c2cd333@gmail.com>

(resending, accidentally sent direct to Marco)
> -----Original Message-----
> From: Marco Atzeri
> Sent: Sunday, May 9, 2021 4:05 PM
> 
> On 09.05.2021 21:54, Marco Atzeri wrote:
> > On 09.05.2021 20:22, Jason Pyeron wrote:
> >
> 
> >
> > $ ./pdfgrep.exe --help
> > terminate called after throwing an instance of 'std::runtime_error'
> >    what():  locale::facet::_S_create_c_locale name not valid
> > Aborted (core dumped)
> >
> > Same for your binary
> >
> 
> it seems the program does not like a locale different from C
> 
> $ LC_ALL=C bin/pdfgrep.exe
> Usage: bin/pdfgrep [OPTION]... PATTERN FILE...
> 
> See 'bin/pdfgrep --help' for more information
> 
> $ LC_ALL="en_US.UTF-8" bin/pdfgrep.exe
> terminate called after throwing an instance of 'std::runtime_error'
>    what():  locale::facet::_S_create_c_locale name not valid
> Aborted (core dumped)

Testing is on my list - hence the CI build infra...

That being said - I cannot reproduce your core dumps for 1.4.1, I can for 2.1.2

jenkinsoss-ci-cygwin ~
$ cd ./workspace/oss-cygwin-pdfgrep-1.4.1-x64/pdfgrep-1.4.1-2.x86_64/inst/usr/bin/

jenkinsoss-ci-cygwin ~/workspace/oss-cygwin-pdfgrep-1.4.1-x64/pdfgrep-1.4.1-2.x86_64/inst/usr/bin
$ ./pdfgrep.exe --help
Usage: ./pdfgrep [OPTION]... PATTERN FILE...

Search for PATTERN in each FILE.
PATTERN is, by default, an extended regular expression.

Options:
 -i, --ignore-case              Ignore case distinctions
 -P, --pcre                     Use Perl compatible regular expressions (PCRE)
 -H, --with-filename            Print the file name for each match
 -h, --no-filename              Suppress the prefixing of file name on output
 -n, --page-number              Print page number with output lines
 -c, --count                    Print only a count of matches per file
 -C, --context NUM              Print at most NUM chars of context
     --color WHEN               Use colors for highlighting;
                                WHEN can be `always', `never' or `auto'
 -p, --page-count               Print only a count of matches per page
 -m, --max-count NUM            Stop reading after NUM matching lines (per file)
 -q, --quiet                    Suppress normal output
 -r, --recursive                Search directories recursively
 -R, --dereference-recursive    Likewise, but follow all symlinks
     --help                     Print this help
 -V, --version                  Show version information

jenkinsoss-ci-cygwin ~/workspace/oss-cygwin-pdfgrep-1.4.1-x64/pdfgrep-1.4.1-2.x86_64/inst/usr/bin
$ cd ..

jenkinsoss-ci-cygwin ~/workspace/oss-cygwin-pdfgrep-1.4.1-x64/pdfgrep-1.4.1-2.x86_64/inst/usr
$ LC_ALL="en_US.UTF-8" bin/pdfgrep.exe
Usage: bin/pdfgrep [OPTION]... PATTERN FILE...

See 'bin/pdfgrep --help' for more information

jenkinsoss-ci-cygwin ~/workspace/oss-cygwin-pdfgrep-1.4.1-x64/pdfgrep-1.4.1-2.x86_64/inst/usr
$ 

Upstream bugs: https://gitlab.com/pdfgrep/pdfgrep/-/issues/45 and https://gitlab.com/pdfgrep/pdfgrep/-/issues/47

-Jason


  reply	other threads:[~2021-05-09 21:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03 19:10 Jason Pyeron
2021-05-03 19:21 ` Achim Gratz
2021-05-03 19:28   ` Jason Pyeron
     [not found]   ` <001001d74052$710751c0$5315f540$@pdinc.us>
2021-05-09 18:22     ` Jason Pyeron
2021-05-09 18:58       ` Achim Gratz
2021-05-09 19:54       ` Marco Atzeri
2021-05-09 20:05         ` Marco Atzeri
2021-05-09 21:12           ` Jason Pyeron [this message]
2021-05-10  6:35             ` Marco Atzeri
2021-05-12  9:27               ` Marco Atzeri
2021-05-17  5:00           ` Jason Pyeron
2021-05-17  6:28             ` Marco Atzeri
2021-05-17 19:59         ` Jason Pyeron
2021-05-18  9:10           ` Marco Atzeri
2021-05-18 17:13           ` Achim Gratz
2021-05-18 19:24             ` Jason Pyeron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01af01d74518$12273510$36759f30$@pdinc.us' \
    --to=jpyeron@pdinc.us \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).