Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i18n: Skip and warn about textdomain names with a slash (bug #23839)
boost::locale::generator::add_messages_domain() interprets the slash specially, interpreting everything after it as an encoding name. It's not clear to me why providing a textdomain with an erroneous name like this causes Boost.Locale to throw a boost::locale::conv exception (invalid_charset_error, apparently) when handling t_strings bound to completely different textdomain, but if we can avoid the issue altogether then that's good enough. Made the legacy implementation skip and warn about these names too even if bindtextdomain(3) says nothing about slashes having a meaning.
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters