Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/thpatch/win32_utf8
Transparent UTF-8 support for native Win32 ANSI applications
https://github.com/thpatch/win32_utf8
994d7ad8c48d6c295926dd58d86cd0e9ed1d3e19 authored about 1 year ago by brliron <[email protected]>
bb8dc6d11dc394aa769e44a06fa356e51daca1b3 authored over 1 year ago by 32th-System <[email protected]>
82b4a43ff69098f8dd8f66fe7dac69e5a1b08e55 authored about 2 years ago by brliron <[email protected]>
2103997ef3acf595ba7f560ef473f72275f58756 authored about 3 years ago by brliron <[email protected]>
Passing something other than a string in the lpFilename parameter is valid
when the GET_MODULE_...
GetModuleHandle variants have special behavior when called with a NULL module name.
However, th...
5f8d70f11d2a3a01889e73ebb1e4a2c2bc4332da authored over 3 years ago by brliron <[email protected]>
1e70b9e714ce99c6b5ffb0a6bb461f6e036bccf2 authored almost 4 years ago by 32th System <[email protected]>
Added GetModuleHandleEx function
449f0cd4dabb3d1a7a8412b6a1d7a3039d3a5ae8 authored almost 4 years ago by brliron <[email protected]>c4307bd52828999d6ade97150a44868b499a629f authored almost 4 years ago by brliron <[email protected]>
Fixed wrong variable used for GetModuleHandleExW function call.
0aa44f0092ebfddb4db11bacb20c2c0d48c41106 authored almost 4 years ago by Blue Cat Audio <[email protected]>third argument should be HMODULE *
0ad11f120b602201a59bf1426de366d4b9efac30 authored about 4 years ago by Blue Cat Audio <[email protected]>Added one more useful function. Kept the right order and tab indentation this time.
775d68f18de2ae1b1e1d5b370c6d45685bb70e53 authored about 4 years ago by Blue Cat Audio <[email protected]>See #9.
fed9841d95cf39ca9a9cc5596d60def8b52eeece authored about 4 years ago by Egor <[email protected]>
- Added a couple of useful function wrappers.
- Defined CallWindowProc as CallWindowProcW. Many ...
626bdf19914059df2f654c84521c8c9887188056 authored about 4 years ago by Egor <[email protected]>
The leak in WCHAR_T_CONV only happens in debug builds.
Merges #8
c2602e1eda798fc0b9bc8601f32bc6ce32ea8e8a authored about 4 years ago by Blue Cat Audio <[email protected]>6a1ce033bff557f3c0bef9b4eab020c44a61fe29 authored about 4 years ago by brliron <[email protected]>
6d5320b42dfde1845314759b61f8e80af812a7c9 authored about 4 years ago by brliron <[email protected]>
68b77723de4fa0c87c507ae1d284ea338e8967ac authored about 4 years ago by brliron <[email protected]>
50d93ac9223fe938cc5f7dbe13290e0138f096bd authored over 4 years ago by brliron <[email protected]>
af1980f77958532dbc267b9e86bd517e213a535a authored about 5 years ago by brliron <[email protected]>
Not really utf-8 related, but still a useful backport from Win 8.
Needed by th17.5 trial on Win 7
a56ce67ffd4057a413aa8d2e43e1aecaaee0ee3b authored about 5 years ago by Egor <[email protected]>1014442d49d161e49aae8d5ac7d168901c319639 authored over 5 years ago by 32th System <[email protected]>
039a93a7606e2d8c37d5fa162a61649788587cb9 authored over 5 years ago by brliron <[email protected]>
376a1b426d049c41f7d23db00b086b39d515bacd authored over 5 years ago by 32th System <[email protected]>
Less duplication if you want to do the same for the C++ delete and
delete[] keywords.
If WM_NOTIFY isn't defined, Richedit.h redefines the NMHDR structure.
That means we can't #undef...
e96cc94cbb3046a3885d21bb17506a44988423e8 authored almost 7 years ago by nmlgc <[email protected]>
It's only thcrap which needs it now, but DirectInput has A and W
versions of its interfaces, so ...
And that's all the error-checking we need to also cover cbMultiByte
being 0. Every other paramet...
2fa0303364f7aeb79ac345a44e89a24c85a5e78b authored almost 7 years ago by brliron <[email protected]>
And removing a certain comment that proved rather annoying for people on
a DBCS locale…
f19f2f8b4b110612ae4b20aa5639a61593737819 authored almost 7 years ago by nmlgc <[email protected]>
Unexpectedly necessary.
8f69ebfe20ee41de1b8c302431c3646843b4f5ca authored almost 7 years ago by nmlgc <[email protected]>Three bugs O_O
f8a598ab87927e2d43e1d36a00aa17bda19f66c1 authored about 7 years ago by nmlgc <[email protected]>Two bugs in this function, even.
afbef5ae5926c2ac0fafa2caae26d3f0aeb3a24e authored about 7 years ago by nmlgc <[email protected]>
Which effectively broke the function for every non-ASCII character in
the combined URL.
50d6add1392109c6513cba9dae5f1227643b4d27 authored about 7 years ago by nmlgc <[email protected]>
Second case for a separate and even smaller win32_sanity library. How
many more until I start wi...
5c080faccfde012a2f084a4f8bdc1d4d269b3dbf authored about 7 years ago by nmlgc <[email protected]>
21adbb9c07856d9d6f5f79e6918a9988df853ac9 authored about 7 years ago by nmlgc <[email protected]>
Yeah, right, when *don't* we want to pass an incoming NULL to the
W function? StringToUTF16_VLA(...
function (CharToUTF16).
9003fc7e421abbf4d4d0734c02cda6626a58ce22 authored about 7 years ago by brliron <[email protected]>
Prioritizing the fallback encoding here because INI is old and the
chance of those strings being...
0b3d2b8ffcd466582e3ea7af613f6332fdcccc88 authored about 7 years ago by nmlgc <[email protected]>
407f847b286648ed9556a2e51c40109ad9d734a0 authored about 7 years ago by nmlgc <[email protected]>
Whatever the original rationale for this was, *it was wrong*, since it
led to DrawText() and Get...
c18f71e074df28fee40cd36278f7a826ce23a4d8 authored about 7 years ago by nmlgc <[email protected]>
12d53739408ba11ef75563175576456081eadd48 authored about 7 years ago by nmlgc <[email protected]>
0ae005b637dd5049205f5d8a8c142b86acf4e424 authored over 7 years ago by nmlgc <[email protected]>
At least the entry point selection behavior for WinMain() is the same as
for main() in all three...
Saving those precious nanoseconds that the C runtime would otherwise
waste with needlessly conve...
f60ef6635be63dee309fb266bda53e8d040e494d authored over 7 years ago by nmlgc <[email protected]>
This allows us to move the UTF-16 → UTF-8 conversion into the DLL for
a dynamic build, and keep ...
More logical to have all "public" headers and source files at the top
level, and more convenient...
The dynamic one will require some further unique code…
410193d3ced4c1ae1b0fbb7fe9c925fcb659662a authored over 7 years ago by nmlgc <[email protected]>Visual Studio adds these by default, but cl.exe doesn't.
b2f2bad41f2a6af68382d5a690045a2e527cc53c authored over 7 years ago by nmlgc <[email protected]>4c620b3d60d1ee84d3ae3c7fa74732a4c74e0810 authored over 7 years ago by nmlgc <[email protected]>
The fact that the original UTF-16-only version (and even the COM
function it wraps, IShellFolder...
Not only because it was actually wrong to do so (it previously returned
"strings are equal" if o...
0da56e669c09cda1f17518aaadf9604984fbf1bb authored over 7 years ago by nmlgc <[email protected]>
In case someone wants to compile this with -Wall… (Hint: We might.)
e08d70af75186275b5f1ef3bf5fe945171aab416 authored over 7 years ago by nmlgc <[email protected]>8d193265f9d71c8d18dd78c1aa35909b1db0f2f5 authored almost 8 years ago by Bruno Liron <[email protected]>
897dcb7d13340a7c4be79e440dda9d4275ee538f authored almost 8 years ago by nmlgc <[email protected]>
beeing in fallback_codepage.
70e84cdd1d72576230d0ccb82947673fa85924f1 authored almost 8 years ago by Bruno Liron <[email protected]>b864f8101a5b978f4e730f3609fda465f7a458eb authored about 8 years ago by nmlgc <[email protected]>
Fixes link errors when using GCC 5, which defaults to -std=gnu11.
4033deaaf6f77845d4e4587e4d61a9def207e078 authored about 8 years ago by nmlgc <[email protected]>a9d3aa32aa870e4404c0a90240d1ce200f017011 authored about 8 years ago by nmlgc <[email protected]>
f2dd0f6b7f7677a9c3a8481319e63c6a3b4a1aba authored about 8 years ago by nmlgc <[email protected]>
Replacing a standard function name with an expression is asking for
trouble once win32_utf8 is i...
7e0a1633717bf5983fbcadf7e6ae7ae3fde2760e authored about 8 years ago by nmlgc <[email protected]>
In C++, these are necessary for function pointers because you can't
simply use FARPROC there.
06322ef131c7353e1373adcfd9357c652ecafe4a authored over 8 years ago by nmlgc <[email protected]>
Except for the *FIRST and *LAST definitions, which are rather useless in
debugging situations, t...
Aannoying in the git diff if Visual Studio suddenly decides to sort files
differently, useless f...
a246ee3d6860028e601f6daa9316d3eef0316e17 authored over 8 years ago by nmlgc <[email protected]>
Should have been done long ago. Ignoring these "manually" on every compilation
can quickly get h...
8c5f886577cdd6afe808ae0f761044ae14e6cc31 authored over 8 years ago by nmlgc <[email protected]>
The Inno Setup-based installers used from TH10 onwards *require* a successful
enumeration of MS ...
e04844ffd6211f297092500d0aba7af873c76219 authored over 8 years ago by nmlgc <[email protected]>
54aa30943eeba440068b8c614ae3ba432ef62f20 authored over 8 years ago by nmlgc <[email protected]>
7ac57475a642fabf3e16276a980276a5b33e7fa9 authored over 8 years ago by nmlgc <[email protected]>
2e5ae2246286a8288cd93ed7a49fe001531bcd45 authored over 8 years ago by nmlgc <[email protected]>
b2360859f514f818ed9faa7e92627b45b10e7bd9 authored almost 9 years ago by nmlgc <[email protected]>
bf41eb41e725241966a44b699b9d0d9808958359 authored about 9 years ago by nmlgc <[email protected]>
I don't know why there are errors, but when compiling thcrap in my system,
lack of WAVEFORMATEX ...
Using non-ASCII characters may cause mysterious errors in some
codepage(like CJK) when they are ...
The version.dll OS compatibility wrappers now also work when linking win32_utf8
statically.
cbdd54c66c22e3f2f6826fbb545628337be12227 authored over 9 years ago by nmlgc <[email protected]>
02c1565b8c8fa6b75c11dff65e9227bf2d17ae27 authored over 9 years ago by nmlgc <[email protected]>
SDL style!
8cf7cbadd26ef29dcf3221baae726b69b0afa5d3 authored over 9 years ago by nmlgc <[email protected]>
Necessary for Visual C++ to eliminate unused wrapper functions from builds.
Interestingly, MinGW...
Yeah, it's probably not worth it to define a shared callback wrapper structure.
3f1de6321a9bb4b9bb165fa7e5409317fc642974 authored over 9 years ago by nmlgc <[email protected]>a9204f1a032b98e1bb22bcf5def811367030188e authored over 9 years ago by nmlgc <[email protected]>
Note that we don't free() the malloc()ed command_line buffer. This is modern
Windows, the operat...
This further simplifies static linking of win32_utf8 into other codebases by
not requiring them ...
ecae46a2478a5fd293f56e9624d66d9949aa6478 authored over 9 years ago by nmlgc <[email protected]>
fa89ed5c7c4987564c90526c16fcc3424c56c3b4 authored over 9 years ago by nmlgc <[email protected]>
DWORD is still a 32-bit type in 64-bit builds, and we certainly don't want to
truncate any poten...