Re: [Rd] Translations and snprintf on Windows

2020-06-05 Thread Michael Chirico
Following up on this after Matt D truffled out the issue -- snprintf was a *bit* of a red herring. The root of the issue is the use of positional identifiers (like %1$d, see https://stackoverflow.com/questions/19327441/gcc-dollar-sign-in-printf-format-string) in the format string for translations.

[Rd] Translations and snprintf on Windows

2020-04-30 Thread Michael Chirico
[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 t