Blender's search in data-blocks is case-sansitive in cyrilic letters #43221

Open
opened 2015-01-12 10:19:42 +01:00 by Michael Soluyanov · 6 comments

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 casetest.blend

Снимок_экрана_из_2015-01-12_12:14:16.png

Снимок_экрана_из_2015-01-12_12:14:30.png

**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 [casetest.blend](https://archive.blender.org/developer/F136759/casetest.blend) ![Снимок_экрана_из_2015-01-12_12:14:16.png](https://archive.blender.org/developer/F136755/Снимок_экрана_из_2015-01-12_12_14_16.png) ![Снимок_экрана_из_2015-01-12_12:14:30.png](https://archive.blender.org/developer/F136757/Снимок_экрана_из_2015-01-12_12_14_30.png)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @crantisz

Added subscriber: @crantisz

Added subscriber: @ideasman42

Added subscriber: @ideasman42

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 (http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#General_todo_items)

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 (http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#General_todo_items)

Added subscriber: @Vyach

Added subscriber: @Vyach

poke
Old but still actual

poke Old but still actual
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#43221
No description provided.