Skip to main content

warn_native_translation

Function warn_native_translation 

Source
pub(crate) fn warn_native_translation()
Expand description

Queue a warning, once per session for each package, the first time a native (unmarked) non-ASCII string is translated to UTF-8: the session’s locale isn’t UTF-8, and bytes its encoding can’t represent came out as <xx> escapes.

Deferred, so it is signalled when the current call returns, never from inside a conversion; class NATIVE_TRANSLATION_CLASS.