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 "\'"

Submitted by:  Markus Gothe <nihilus>
Submitted on:  Fri 09 Dec 2016 09:15:19 AM UTC  
Category:  Shell Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open

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:

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>


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 ueno (Posted a comment)
  • -email is unavailable- added by nihilus (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-09 ueno StatusNone => Need Info

    Back to the top

    Powered by Savane 3.3