This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenlib
Ray molenkamp 5496d8cd36 Windows: Fix wchar_t truncation
BLI_strncpy_wchar_from_utf8 made the assumption that
wchar_t is UTF-32 bit regardless of environment, while
this holds true on both mac and linux, on windows
wchar_t is actually actually UTF-16.

This resulted in the upper 16 bits being dropped from
from some string conversions and prevented blender
from starting when installed in a path with unicode
code-points over 0xffff.

There was also a fair bit of code duplication between
BLI_strncpy_wchar_from_utf8 and BLI_str_utf8_as_unicode_and_size

this change essentially removes all logic from
BLI_strncpy_wchar_from_utf8 and calls the right function
for the right environment.

Reviewed By: brecht , Robert Guetzkow

Differential Revision: https://developer.blender.org/D9822
2021-01-26 14:56:39 -07:00
..
2021-01-26 14:56:39 -07:00
2021-01-04 17:38:11 +11:00
2020-08-27 15:33:33 +10:00
2021-01-11 14:59:05 +01:00
2021-01-11 14:59:05 +01:00
2021-01-04 17:38:11 +11:00
2021-01-11 14:59:05 +01:00
2020-08-10 18:17:07 +02:00
2020-08-28 10:04:26 -06:00
2021-01-04 17:38:11 +11:00
2021-01-11 14:59:05 +01:00
2020-10-19 08:43:08 -07:00
2020-11-10 08:48:18 -07:00
2021-01-04 17:38:11 +11:00
2021-01-20 16:08:52 +11:00