mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 07:30:23 +02:00
Drop wide/narrow conversion functions
The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely.
This commit is contained in:
@ -247,8 +247,8 @@ void TestUtilities::testStartsWith()
|
||||
|
||||
void TestUtilities::testStrEqual()
|
||||
{
|
||||
UASSERT(str_equal(narrow_to_wide("abc"), narrow_to_wide("abc")));
|
||||
UASSERT(str_equal(narrow_to_wide("ABC"), narrow_to_wide("abc"), true));
|
||||
UASSERT(str_equal(utf8_to_wide("abc"), utf8_to_wide("abc")));
|
||||
UASSERT(str_equal(utf8_to_wide("ABC"), utf8_to_wide("abc"), true));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user