« first day (2867 days earlier)      last day (989 days later) » 

00:24
welp I modified the build script a little bit from npcglib.org/~stathis/blog/precompiled-icu
looks like everything is compiling now
decided to build static version of icu
 
8 hours later…
08:51
welp corrupted static library
at this point I should gave up
😂
09:13
@Trung0246 wtf....
this is the reason I hate Windows so much :D
 
2 hours later…
11:04
@Trung0246 welcome in my world :P jokes aside, I don't use windows, but I always find walls or end up in these kind of situation whenever I try to do something on a computer, really
anyway, think those two links are related to this problem: first link, second link
@Kamiccolo I would bet you half of those problem wouldn't have happened on older version of windows...but then again, there would be other problems because of the "older" part, so maybe not :D
11:25
@NordineLotfi and yeah, older version MSVC runtime :}
Of course, there must be some tools and procedures to figure these issues out... but I do not know those :| In terms of Linux, that would be nm, objdump and mostly ldd
11:37
Something like this? dumpbin /depends
216
Q: How to check for DLL dependency?

orlpSometimes when I'm doing a little project I'm not careful enough and accidentally add a dependency for a DLL that I am not aware of. When I ship this program to a friend or other people, "it doesn't work" because "some DLL" is missing. This is of course because the program can find the DLL on my...

but not ABI/API verification -.-
11:55
@Kamiccolo yep ;)
@Kamiccolo didn't know about nm but I do know about the other two you mentioned :o
hmm, didn't know about dumpbin either
12:09
@NordineLotfi probably some kind of MSVC tool. Not sure.
 
1 hour later…
13:14
ah, that explain why I never heard of it before :)
 
8 hours later…
21:18
heh, one of my friends trying to solve JS-like issue with type conversions happening (or not?) on AWK:
https://stackoverflow.com/questions/71683391/is-this-a-gnu-awk-bug-or-a-feature
yep
different visual studio runtime
😂
apparently, it has some kind of GDB-like (or GDB-backended?) built in debugger, which could also be used for this kind of issues... :D Just messing around with all these different traces to make any sense:
https://gist.github.com/kamiccolo/6ae90b53d2822ae8ddbf6f9a2319273c#file-gistfile1-txt
one use VCRUNTIME140_1.dll while the other one use VCRUNTIME140D.dll or VCRUNTIME140_1D.dll
whatever it called
@Trung0246 oh yeah.... :D FFFFFFFU.... I wonder, is there are way (a proper one) on windows to do something like LD_PRELOAD? Or... pick another one easily during runtime?
no idea if VCRUNTIME140_1.dll is 2017 or 2019
21:22
yup, as I said, that darn libicu is built with 140_1 (or MVSC 2019?):
https://github.com/unicode-org/icu/releases
where is the mention of runtime in release page?
Also, I believe I saw something regarding the runtime in documentation...
anyways, I'm trying to compile icu with 2022 runtime and see if dynamic libraries works
since switching to static then recompile in vs apparently gave me this error
no idea
this worked before
weird
is this just another windows thing?
welp
21:40
@Trung0246 it expects buffer size to be a multiple of 2. Which makes perfect sense for wide strings :}
so I have to convert UChar to wchar?
hmm
isn't UChar have the size of uint16_t?
what is that macro?
baaah, where is buffer in this case? o_0 mhmppf, somekind of automagic again?
@Trung0246 well, exactly the assertion which is being hit and reported by the debugger...
ah so it does the check, not the actual buffer size change code
21:46
mhm. Maybe this? https://docs.microsoft.com/is-is/cpp/c-runtime-library/reference/setvbuf?view=msvc-160

Not even sure what kind of buffer it's being talked about. This must be `stdout`, because You're printing?
Would something like this work on top?
   char buff[1024];
   setvbuf(stdout, buff, _IOFBF, 1024);
https://i.imgur.com/GLtregp.png
I set my buf size to 512, but new error
or maybe just `setvbuf(stdout, NULL, _IOFBF, 1024);Ä…
hmm
yep same thing with NULL
at least this thing is step-by-step available to debug
interesting, the error caused upon exiting main function
weird
This is more likely related to some unallocated memory. Or something like that o_0
do You have some kind of back-trace or something on the debugger? To see what exactly is causing this shit...
maybe setvbuf(stdout is not the correct way
call stack?
21:55
fffffffu.... all the way down to the Kernelbase.dll -.- wtffff
anyways, fun fact
apparently removing the u_printf line the error is gone
weird
setvbuf is still there
so something really wrong with u_printf
there's no mentions about this in icu doc either
it still feels like some kind of internal issue with the library itself, MSVC runtime and/or gutts of operating system :| I believe it should have not reached this kind of deep call stack...

« first day (2867 days earlier)      last day (989 days later) »