[Rd] Translations and snprintf on Windows
Michael Chirico
m|ch@e|ch|r|co4 @end|ng |rom gm@||@com
Thu Apr 30 10:16:55 CEST 2020
[a bit unsure on if this is maybe better for r-package-devel]
We recently added translations to messages at the R and C level to
data.table.
At the C level, we did _() wrapping for char arrays supplied to the
following functions: error, warning, Rprintf, Error, and snprintf.
This seemed OK but the use of snprintf specifically appears to have caused
a crash on Windows:
https://github.com/Rdatatable/data.table/issues/4402
Is there any guidance against using gettext with snprintf, or perhaps
guidance on which "outputters" *are* OK for translation?
Michael Chirico
[[alternative HTML version deleted]]
More information about the R-devel
mailing list