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
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

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.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=d5cd59cbc63f2879373d84428debf8b79e94e4f7

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.larcenists.org/Documentation/Documentation0.98/r6rs.pdf) and directives with R7RS (http://www.larcenists.org/Documentation/Documentation0.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>

 

(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 (Posted a comment)
  • -email is unavailable- added by fangly (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 3 latest changes.

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

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code