Blender Git Commit Log

Git Commits -> Revision 8cf1994

Revision 8cf1994 by Sybren A. Stüvel (master)
December 21, 2021, 14:54 (GMT)
Fix T93960: Asset Catalogs I/O fails with unicode file paths on Windows

On Windows, encode file paths as UTF-16 before trying to open the file
for reading/writing.

This introduces a new class `blender::fstream`, which wraps
`std::fstream` and provides this UTF-16 encoding. This class should also
be used in other areas, like the Alembic importer/exporter.

Manifest Task: T93960

Reviewed By: JacquesLucke

Differential Revision: https://developer.blender.org/D13633

Commit Details:

Full Hash: 8cf19944557452ae7a9c1cb2365d6121f2dfdb4d
Parent Commit: d66a652
Lines Changed: +173, -3

3 Added Paths:

/source/blender/blenlib/BLI_fileops.hh (+52, -0) (View)
/source/blender/blenlib/intern/fileops.cc (+51, -0) (View)
/source/blender/blenlib/tests/BLI_fileops_test.cc (+40, -0) (View)

3 Modified Paths:

/source/blender/blenkernel/intern/asset_catalog.cc (+3, -3) (Diff)
/source/blender/blenkernel/intern/asset_catalog_test.cc (+24, -0) (Diff)
/source/blender/blenlib/CMakeLists.txt (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021