From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2.pdinc.us (mail2.pdinc.us [67.90.184.28]) by sourceware.org (Postfix) with ESMTPS id 972D3385803F for ; Mon, 17 May 2021 05:00:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 972D3385803F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pdinc.us Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jpyeron@pdinc.us Received: from lovegrove (nsa1.pdinc.us [67.90.184.2]) (authenticated bits=0) by mail2.pdinc.us (8.14.4/8.14.4) with ESMTP id 14H50ZnK015672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 17 May 2021 01:00:35 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 mail2.pdinc.us 14H50ZnK015672 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdinc.us; s=default; t=1621227635; bh=tAG4XSNkrM92uBuKP/kfn3ChPIFehNzPT2lzydoWa9U=; h=From:To:References:In-Reply-To:Subject:Date:From; b=g+iZcVrPQ4FMA83NZkJtAd62iy7dqDIZ1a/0iAVlhzsl6k3bgXNdaBMW3f/lfDN2g s1aOZ0p0KaJEdkiCEcnzaVAceO/cF8hFn9WZ289I5nMYnejxbu04VLB5OtEjkQFr1e dc9cnDUagrzYOJPneTCqcXnI+zPQYX6/VOSCNxNN/+UG1bIevuVxBfk6XXXXBYRr00 rrK59viCM1zLQHf0COGlVsVaep6gSgC1grg2UUTBzX3tZBvMusm/An1/MutsjGqnXG 0Zk9XF9YKuzBlJm3c2D0Uu394sjVzQvoKQjGjN6JPYWoTb7MRE0td8C9G8oL7btStD s/PSc51TaS3UA== From: "Jason Pyeron" To: References: <000401d7404f$faa32970$efe97c50$@pdinc.us> <877dkf7hep.fsf@Rainer.invalid> <001001d74052$710751c0$5315f540$@pdinc.us> <017801d74500$4c5eb270$e51c1750$@pdinc.us> <4003269c-9c8b-7707-d3a8-8f6f5c2cd333@gmail.com> In-Reply-To: <4003269c-9c8b-7707-d3a8-8f6f5c2cd333@gmail.com> Subject: RE: pdfgrep [ITA] Date: Mon, 17 May 2021 01:00:46 -0400 Message-ID: <057f01d74ad9$98ee6d40$cacb47c0$@pdinc.us> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQG4V8CdSbQBl0rMiCygpDYums9AuAGpNmX+AaJepVsCG+fARwHKHopoAXVvafyq38pTkA== Content-Language: en-us X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2021 05:00:37 -0000 > -----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) Tracking upstream at: https://gitlab.com/pdfgrep/pdfgrep/-/issues/50 Bug introduced between v1.4.1 and v2.0 in commit 3eb727125f119e1fbc19ba67449838c3f91cd9f6 Author: Hans-Peter Deifel Date: Tue Jun 21 16:56:30 2016 +0200 Set locale to user preferred one This enables some unicode awareness in regcomp/regexec if the user has set a UTF-8 loacle. Specifically the change was the addition of: locale::global(locale(""));