These identifiers are quite useful for translations since grammar changes
by language mean the inputs should naturally change order when changing
languages -- however, they are a POSIX extension.
snprintf produced the issue since all other messages are ultimately R
functions, and base R handles the issue (AFAICT via trioremap.h).
On Thu, Apr 30, 2020 at 4:16 PM Michael Chirico <[hidden email]>
> [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
> 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