Тотальная неудачница и убийца жёстких дисков.
#post-id: 7995-02-56
#original-date: 16.06.2022 Thu
#original-time: 2:56 AM
#original-day: 7995
#original-host: WinXP Home SP3 (Build 2600)

Microsoft идёт навстречу неосиляторам и прочим адептам двух кодировок, до сих пор пытающимся выяснить, в какой кодировке Windows хранит имена файлов.

https://devblogs.microsoft.com/oldnewthing/20220531-00/?p=106697

/* Про кодировку имён файлов – вообще звёздный вопрос. Каждый раз, когда такое вижу, рука сама тянется к черенку от лопаты. */

#upd(16.06.2022 - 3:05 AM):

Win32 APIs often support both -A and -W variants.

-A variants recognize the ANSI code page configured on the system and support char*, while -W variants operate in UTF-16 and support WCHAR.

Until recently, Windows has emphasized "Unicode" -W variants over -A APIs. However, recent releases have used the ANSI code page and -A APIs as a means to introduce UTF-8 support to apps. If the ANSI code page is configured for UTF-8, -A APIs typically operate in UTF-8. This model has the benefit of supporting existing code built with -A APIs without any code changes.


https://docs.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page