Page MenuHome

Blender's search in data-blocks is case-sansitive in cyrilic letters
Confirmed, NormalPublicTO DO


System Information
Ubuntu 14.04

Blender Version
Broken: 2.73

Short description of error
Supporting of Utf-8 characters chars in names of objects and data-blocks are not completely done. While searching, uppercase and lowercase letters in the Cyrillic alphabet are considered as different letters.

Exact steps for others to reproduce the error
Here is the test file

Event Timeline

Campbell Barton (campbellbarton) lowered the priority of this task from 90 to 50.Jan 12 2015, 11:09 AM

This is definetly missing in our current code, but is a part of a bigger issue - that we have many uses of.

  • BLI_strcasecmp
  • BLI_strcasestr
  • BLI_strncasecmp
  • BLI_natstrcmp

And none of them handle unicode characters.

Suggest solution:

Use Python's unicode library as we do already for text_check_identifier_unicode, text_check_identifier_nodigit_unicode.
This is very low level and not related to the rest of the Python runtime (no GIL or py-threading issues)

Then wrap Py_UNICODE_TOLOWER as a bad-level call in BLI_string_utf8.h and have utf8 versions of the functions above.

This is a longer term TODO though (

Old but still actual