bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [bug #43970] Incorrect "warning: unterminated string liter


From: Vaclav Slavik
Subject: [bug-gettext] [bug #43970] Incorrect "warning: unterminated string literal" for some C++11 raw strings
Date: Sat, 10 Jan 2015 14:27:50 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5

URL:
  <http://savannah.gnu.org/bugs/?43970>

                 Summary: Incorrect "warning: unterminated string literal" for
some C++11 raw strings
                 Project: GNU gettext
            Submitted by: vslavik
            Submitted on: Sat 10 Jan 2015 02:27:48 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I'm filing this bug even though there's #43726 (closed as duplicate), because
I can't figure out how to reopen the bug.

I tested this with the latest xgettext 0.19.4; this is not an issue of missing
C++11 support, but seems to be a problem with handling of quote characters
contained in a raw string. Full reproducible example:

$ cat >x.cpp
LR"(\(\s*['"]([^'"]+)['"]\s*[,)])";
$ xgettext -o- x.cpp 
x.cpp:0: warning: unterminated string literal
$





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43970>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]