Cleanup: use ascii as suffix (as with utf8)
This commit is contained in:
@@ -543,7 +543,7 @@ void WM_operator_py_idname(char *to, const char *from)
|
||||
/* note, we use ascii tolower instead of system tolower, because the
|
||||
* latter depends on the locale, and can lead to idname mismatch */
|
||||
memcpy(to, from, sizeof(char) * ofs);
|
||||
BLI_ascii_strtolower(to, ofs);
|
||||
BLI_str_tolower_ascii(to, ofs);
|
||||
|
||||
to[ofs] = '.';
|
||||
BLI_strncpy(to + (ofs + 1), sep + 4, OP_MAX_TYPENAME - (ofs + 1));
|
||||
@@ -564,7 +564,7 @@ void WM_operator_bl_idname(char *to, const char *from)
|
||||
int ofs = (sep - from);
|
||||
|
||||
memcpy(to, from, sizeof(char) * ofs);
|
||||
BLI_ascii_strtoupper(to, ofs);
|
||||
BLI_str_toupper_ascii(to, ofs);
|
||||
strcpy(to + ofs, "_OT_");
|
||||
strcpy(to + (ofs + 4), sep + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user