BLI_string, dont pass unicode to ascii BLI_str_partition functions

This commit is contained in:
Campbell Barton
2014-07-08 06:06:34 +10:00
parent aac283966f
commit ea1f1fe0c2
4 changed files with 11 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ int mk_wcswidth(const wchar_t *pwcs, size_t n)
/* BLI_str_partition */
TEST(string, StrPartition)
{
const unsigned int delim[] = {'-', '.', '_', 0x00F1 /* n tilde */, 0x262F /* ying-yang */, '\0'};
const char delim[] = {'-', '.', '_', '~', '\\', '\0'};
char *sep, *suf;
size_t pre_ln;
@@ -94,7 +94,7 @@ TEST(string, StrPartition)
/* BLI_str_rpartition */
TEST(string, StrRPartition)
{
const unsigned int delim[] = {'-', '.', '_', 0x00F1 /* n tilde */, 0x262F /* ying-yang */, '\0'};
const char delim[] = {'-', '.', '_', '~', '\\', '\0'};
char *sep, *suf;
size_t pre_ln;