Fluent scope leakage issue in bibliography #2054
Labels
bug
Software bug issue
modules:packages
Issue relates to core or 3rd party packages
packages:bibliography
Milestone
Language changes in bilbliography (e.g. caused by an "et al") leak beyond the expected scope.
Minimal example
Bibliography
Document:
Obtained
The third book reference has latin text where it shoudn't.
Analysis
The bibliography package uses
fluent:get_message()
directly.Due to fluent not being stateless and having its own global local state, there's a scope leakage. (It does ring an old bell #1477...)
Of course, a possible quick fix would be to systematically invoke
fluent:set_locale(SILE.settings:get("document.language"))
before any call tofluent:get_message()
in the bibliography package -- I'll leave it to the readers to judge whether it is a sane and nice solution...The text was updated successfully, but these errors were encountered: