Menu

#5753 yyout2grammar.py chokes on non-English input

Accepted
nobody
None
Enhancement
2020-02-28
2020-02-13
No

For reasons I have yet to investigate, I currently get German output of bison -v (inspite of using an US english locale!) while building LilyPond with MacPorts – this looks like a bug in MacPorts.

Anyway, this 'feature' makes the yyout2grammar.py script die with

Grammar section aborted at EOF

which should eventually be fixed IMHO. For example, the German manual could include a German version of the grammar...

Attached is such a German bison output for testing purposes.

1 Attachments

Discussion

  • Werner LEMBERG

    Werner LEMBERG - 2020-02-13

    BTW, it's not a bug in MacPorts but a problem without build system. On my MacOS box, I have LANGUAGE=de in my environment, and recent versions of gettext honour that.

     
  • Werner LEMBERG

    Werner LEMBERG - 2020-02-13

    A trivial fix (namely, to enforce English output of bison) is in issue #5759. It would be still nice if this script could digest non-English bison output...

     
  • Werner LEMBERG

    Werner LEMBERG - 2020-02-28
    • status: New --> Accepted
    • Type: --> Enhancement
     
MongoDB Logo MongoDB