bugGNU gettext - Bugs: bug #61987, Incomplete PO output with Scheme...

 
 

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

bug #61987: Incomplete PO output with Scheme lexeme and directives

Submitter:  Florent Angly <fangly>
Submitted:  Thu 03 Feb 2022 03:55:27 PM UTC
   
 
Category:  Scheme Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fix Released Privacy:  Public
Assigned to:  haible Open/Closed:  Closed

Discussion

Sun 01 Dec 2024 04:35:11 PM UTC, comment #2: 

The fix is contained in gettext 0.23.

Bruno Haible <haible>
Group administrator
Fri 16 Aug 2024 11:59:00 PM UTC, comment #1: 

Thanks for the report. xgettext now understands #!r6rs and #!fold-case. Implemented through https://git.savan ... 28debf8b79e94e4f7

I did not implement support for #!foo because that is not specified by the standards, not implemented in Guile, and conflicts with the interpretation of #!...!# as a comment by Guile.

Bruno Haible <haible>
Group administrator
Thu 03 Feb 2022 03:55:27 PM UTC, original submission:  

Scheme introduced a lexeme with R6RS (http://www.larcen ... tion0.98/r6rs.pdf) and directives with R7RS (http://www.larcen ... tion0.98/r7rs.pdf). When I use these features, xgettext 0.19.8.1 fails to parse the entirety of the source code. Specifically, all code after the lexeme/directive is ignored.


Example Scheme file "test.scm":

(string-append
  (i18n "User")
  #!r6rs      ; R6RS lexeme
  #!fold-case ; R7RS directive
  #!foo       ; custom directive
  #!
  (i18n "disabled"))


When I run

> xgettext --language=Scheme --keyword=id:i18n test.scm

the output PO file should include both the "user" and "disabled" msgids, but "disabled" is missing. Commenting out the lines with lexeme/directives leads to the expected output being generated

Florent Angly <fangly>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-12-01 haible StatusFixed Fix Released
    2024-08-16 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code