Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode characters are not supported in material name #125

Closed
PavelBlend opened this issue Apr 11, 2018 · 6 comments
Closed

Unicode characters are not supported in material name #125

PavelBlend opened this issue Apr 11, 2018 · 6 comments
Labels
blender bug A bug in Blender itself, needs to be fixed by a Blender developer or contributor bug

Comments

@PavelBlend
Copy link

System Information

Windows 7 64 bit, GPU: None

Software Version

  • Blender version: 2.79b
  • LuxCore version: 2.0 beta 2

Error message from Blender console

ui_do_but_textedit: utf8 char '╨в'
ui_do_but_textedit: utf8 char '╨╡'
ui_do_but_textedit: utf8 char '╤Б'
ui_do_but_textedit: utf8 char '╤В'

Short description of error

unicode characters are not supported in material name

Exact steps for others to reproduce the error

  1. create new material
  2. rename material to Тест (russian text)
  3. open material selecter:
    01
@Dade916
Copy link
Member

Dade916 commented Apr 11, 2018

The problem may be not only limited to BlendLuxCore but involve LuxCore code too. It is a really un-tested area.

@Theverat
Copy link
Member

Theverat commented Apr 11, 2018

This is the material selector: https://github.com/LuxCoreRender/BlendLuxCore/blob/master/operators/material.py#L115
As far as I can see we are only using standard Blender API methods here (EnumProperty to generate the material list, window manager for the search popup).
So it is probably a limitation of the Blender API.

The ui_do_but_textedit warning/error is from Blender.

@Theverat
Copy link
Member

Theverat commented Apr 13, 2018

@PavelBlend please open a bug report in the Blender bug tracker.
My guess is that the WindowManager.invoke_search_popup method invokes an outdated Blender function internally which can't handle unicode.

It is similar to this old bug report: https://developer.blender.org/T35824

If they need it I can create a small example addon that shows the issue.

@PavelBlend
Copy link
Author

Created Task:
https://developer.blender.org/T54591

@brechtvl
Copy link

It may be the bug mentioned in the Python API docs here, that needs to be worked around for now:
https://docs.blender.org/api/current/bpy.props.html?highlight=enumproperty#bpy.props.EnumProperty

@Theverat
Copy link
Member

Thanks, that was exactly the issue.
The ui_do_but_textedit warnings still appear, but they seem to be unrelated to the problem.
The search works now.

@Theverat Theverat added bug blender bug A bug in Blender itself, needs to be fixed by a Blender developer or contributor labels Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blender bug A bug in Blender itself, needs to be fixed by a Blender developer or contributor bug
Projects
None yet
Development

No branches or pull requests

4 participants