bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

POSIX gettext(): behaviour if iconv() produces a replacement character


From: Bruno Haible
Subject: POSIX gettext(): behaviour if iconv() produces a replacement character
Date: Thu, 12 May 2022 01:35:06 +0200

https://posix.rhansen.org/p/gettext_draft
Line 350

"If a significant proportion of the converted message string would consist
 of characters resulting from non-identical conversions ..."

The term "significant proportion" is undefined.

Suggestion: Change
"If a significant proportion of the converted message string would consist
 of characters resulting from non-identical conversions that do not provide
 any information about the character they were converted from (for example,
 if the converted message string would be mostly <question-mark> or
 <replacement-character> characters)"
to
"If at least one of the non-identical conversions produces a fallback
 character (such as <question-mark> or <replacement-character>, depending
 on implementation)"

Rationale: There is no point in forcing gettext() to accept the converted
string when it has low quality.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]