I would want wine/Linux run programs (i.e. Windows exe/dll running on Linux through wine) to use the same accuracy for Trascendental functions as implemented by Microsoft (i.e. VS2019 etc etc).
The challenge I have is that some software I need to run through wine does call such functions and I'm afraid the accuracy/implementation provided through glibc yields to different numbers and makes the code eventually follow different paths.
I have found a workaround, which is to load ucrtbase.dll as native,builtin
as in
WINEDLLOVERRIDES="ucrtbase=n,b" wine <my program>
This works excellent when I run my software through interactive terminal.
Unfortunately if I then run such process as a sub-process (i.e. stdout and stderr redirected to memory/files) then the program crashes because I guess it still believes it's on a terminal and tries to print special color characters, but of course it should not. Of course if I leave the builtin ucrtbase.dll it all works as sub-process, but then I lose accuracy/results.
Any idea how I could proceed next? I would also be ok to recompile some transcendental functions myself inside the builtin wine ucrtbase.dll to be the same as VS2019 (and further) alas not sure the source code is publicly available?