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/intern
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
..
2020-11-06 12:32:54 +11:00
2020-07-02 13:03:46 +10:00
2020-10-19 08:12:33 -07:00
2020-10-19 08:12:33 -07:00
2020-10-19 08:12:33 -07:00
2020-08-19 14:04:36 +10:00
2020-10-19 08:12:33 -07:00
2020-10-19 08:12:33 -07:00
2020-11-06 12:32:54 +11:00
2020-11-20 11:39:22 +11:00
2020-11-06 12:32:54 +11:00
2019-08-12 01:10:43 +10:00
2020-12-14 20:44:26 +11:00
2020-10-19 08:43:08 -07:00
2020-11-18 00:27:29 +11:00
2020-11-06 12:32:54 +11:00
2020-08-03 17:42:45 +02:00
2020-05-09 17:15:43 +10:00
2020-11-04 00:01:00 +11:00
2020-10-19 08:43:08 -07:00
2020-09-10 09:45:25 +10:00
2021-01-26 14:56:39 -07:00
2020-05-09 17:19:28 +10:00
2020-07-19 17:37:02 +10:00
2020-08-02 18:02:20 +10:00
2020-10-19 08:43:08 -07:00