Blender Git Loki

Git Commits -> Revision 177dfc6

Revision 177dfc6 by Germano Cavalcante (master)
November 22, 2019, 15:27 (GMT)
Fix T71273: Bad encoding of utf-8 for Text objects

`BLI_strncpy_wchar_from_utf8` internally assumes `wchar_t` is 32 bits
which is not the case on windows.

The solution is to replace `wchar_t` with `char32_t`.

Thanks to @robbott for compatibility on macOS.

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

Commit Details:

Full Hash: 177dfc6384b926dd19e3b7e98a995ccb4da9167c
Parent Commit: 1304cee
Lines Changed: +198, -90

16 Modified Paths:

/extern/wcwidth/README.blender (+3, -1) (Diff)
/extern/wcwidth/wcwidth.c (+5, -7) (Diff)
/extern/wcwidth/wcwidth.h (+13, -5) (Diff)
/source/blender/blenfont/intern/blf_font.c (+1, -1) (Diff)
/source/blender/blenkernel/BKE_font.h (+5, -7) (Diff)
/source/blender/blenkernel/intern/font.c (+20, -21) (Diff)
/source/blender/blenkernel/intern/object_dupli.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/text.c (+0, -1) (Diff)
/source/blender/blenlib/BLI_string_cursor_utf8.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_string_utf8.h (+10, -2) (Diff)
/source/blender/blenlib/BLI_sys_types.h (+9, -0) (Diff)
/source/blender/blenlib/intern/string_cursor_utf8.c (+8, -8) (Diff)
/source/blender/blenlib/intern/string_utf8.c (+91, -4) (Diff)
/source/blender/editors/curve/editfont.c (+26, -26) (Diff)
/source/blender/editors/curve/editfont_undo.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021