Page MenuHome

Fix for Python failure with .blend files loaded from paths including non-ASCII characters
AbandonedPublic

Authored by Tamito Kajiyama (kjym3) on Jan 28 2014, 4:32 PM.

Details

Reviewers
None
Summary

Just imported the latest patch set bpy_module_filename_fix_v3.patch from T35176 and rebased, for ease of further tests and code review.

Diff Detail

Event Timeline

Tamito Kajiyama (kjym3) updated this revision to Unknown Object (????).Feb 13 2014, 2:14 PM
  • The helper function PyC_EncodeFSDefault() now always returns a valid string rather than NULL even when encoding conversion is failed (see code comments for more info on error conditions).
  • The Py_FileSystemDefaultEncoding variable being unset is now considered a normal condition (in this case PyUnicode_EncodeFSDefault() falls back to the locale encoding).
Tamito Kajiyama (kjym3) updated this revision to Unknown Object (????).Feb 13 2014, 2:41 PM
  • Fix for PyC_EncodeFSDefault() not clearing Python errors when appropriate.

Alternative fix was done by commit rB4d1a109ddec0.