bugGNU gettext - Bugs: bug #43726, "warning: unterminated string...

 
 

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

bug #43726: "warning: unterminated string literal" messages. false positives with some C++11 strings

Submitter:  GunChleoc <gunchleoc>
Submitted:  Sat 29 Nov 2014 07:26:10 PM UTC
   
 
Category:  C Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed

Sun 30 Nov 2014 08:42:01 AM UTC, comment #1: 

https://savannah.gnu.org/bugs/?39499

Thanks for the report with a practical example, anyway.

Daiki Ueno <ueno>
Group administrator
Sat 29 Nov 2014 07:26:10 PM UTC, original submission:  

A "warning: unterminated string literal" message will be triggered while creating .pot templates with C++11 strings like the following:


const char kTerrainFragmentShader[] = R"(
#version 120

uniform sampler2D u_terrain_texture;

varying float var_brightness;
varying vec2 var_texture_position;

void main() {
 vec4 clr = texture2D(u_terrain_texture, var_texture_position);
 clr.rgb *= var_brightness;
 gl_FragColor = clr;
}
)";


GunChleoc <gunchleoc>

 

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

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

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone C
        Assigned toNone ueno
    2014-11-30 ueno StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code