bugGNU gettext - Bugs: bug #56794, Lua multiline string should ignore...

 
 

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

bug #56794: Lua multiline string should ignore first newline

Submitter:  Frans de Jonge <frenzie>
Submitted:  Thu 22 Aug 2019 08:10:09 AM UTC
   
 
Category:  Lua Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Tue 14 Apr 2020 12:24:04 PM UTC, comment #3: 

The fix is contained in gettext 0.20.2.

Bruno Haible <haible>
Group administrator
Thu 22 Aug 2019 03:09:32 PM UTC, comment #2: 

No problem, thanks for fixing.

Frans de Jonge <frenzie>
Thu 22 Aug 2019 02:39:19 PM UTC, comment #1: 

Thanks for the report. Fixed through https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=5443a27e2b4afafe57b1dd8f518cd013dc0ca0a1

Your patch was right. I just did not use it because I did not notice it until I had already done the fix.

Bruno Haible <haible>
Group administrator
Thu 22 Aug 2019 08:10:09 AM UTC, original submission:  

In Lua, the following two strings are equivalent:

[[one line]]

[[
one line]]

I've attached a simple testcase and a proof of concept patch that displays correct behavior.

Frans de Jonge <frenzie>

 

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

Attached Files
file #47378:  multiline.lua added by frenzie (148B - text/x-lua)

 

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 frenzie (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2019-08-22 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed
    2019-08-22 frenzie Attached File- Added multiline.lua, #47378
        Attached File- Added 0001-Ignore-first-newline-of-Lua-multiline-string.patch, #47379

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code