Blender Git Loki

Git Commits -> Revision f28b5e6

Revision f28b5e6 by Campbell Barton (master)
August 28, 2010, 12:34 (GMT)
python/utf8 compatibility fixes. (as discussed on the mailing list)

- user input gets non utf8 chars stripped all text input other then file paths.

- python has the same limitations, it will raise an error on non utf8 strings except for paths use unicode escape literals so its possible to deal with saving to these file paths from python.

- new string functions
BLI_utf8_invalid_byte(str, len) returns the first invalid utf8 byte or -1 on on success.
BLI_utf8_invalid_strip(str, len) strips non utf-8 chars.

Commit Details:

Full Hash: f28b5e672ed05bb08b317c78a36b31e7c49d4f4e
SVN Revision: 31630
Parent Commit: 7a7076c
Lines Changed: +269, -25

9 Modified Paths:

/source/blender/blenlib/BLI_string.h (+3, -0) (Diff)
/source/blender/blenlib/intern/string.c (+111, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+4, -3) (Diff)
/source/blender/editors/interface/interface_handlers.c (+23, -0) (Diff)
/source/blender/editors/space_file/file_draw.c (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_render.c (+12, -12) (Diff)
/source/blender/makesrna/intern/rna_sequencer.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_rna.c (+110, -7) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021