bugGNU gettext - Bugs: bug #49809, xgettext cannot parse...


You are not allowed to post comments on this tracker with your current authentication level.

bug #49809: xgettext cannot parse "\'"

Submitter:  Markus Gothe <nihilus>
Submitted:  Fri 09 Dec 2016 09:15:19 AM UTC
Category:  Shell Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Tue 14 Apr 2020 12:20:01 PM UTC, comment #4: 

The fix is contained in gettext 0.20.2.

Bruno Haible <haible>
Project Administrator
Sun 18 Aug 2019 11:36:02 PM UTC, comment #3: 
Bruno Haible <haible>
Project Administrator
Fri 09 Dec 2016 10:11:39 AM UTC, comment #2: 

I've tried both 0.18.x and

Try this:

TMP="$(gettext "foobar")"
TMP="$(echo "$TMP" | tr -d \')"
TEST="$(gettext "HeyHey")"
TEST2="$(gettext "gabba gabba hey hey")"

echo "$TEST"

foobar will be extracted but not the rest.

Markus Gothe <nihilus>
Fri 09 Dec 2016 09:29:43 AM UTC, comment #1: 

Sorry, you provide too little information.  I can't reproduce it with:

cat > a.sh
sed -e s/\'//g" or "tr -d \'

xgettext -o - a.sh

We would at least need:

- What version of gettext did you use?
- What command line did you use?
- What behavior did you expect?
- What behavior did you actually see (what do you mean by "bail out")?

Thank you,

Daiki Ueno <ueno>
Project Administrator
Fri 09 Dec 2016 09:15:19 AM UTC, original submission:  

Having the following in a script makes xgettext bail out:
"sed -e s/\'//g" or "tr -d \'"

Markus Gothe <nihilus>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by nihilus (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-18 haible StatusNeed Info Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed
    2016-12-09 ueno StatusNone Need Info

    Back to the top

    Powered by Savane 3.9