Problem with concating of multiple wide string in wcout - unnecessary space after each charcater

Ladislav Török ltorokrl at gmail.com
Fri Dec 10 16:17:34 UTC 2021


Environment:
Windows 2010,
Microsoft Visual Studio 2019,
java -version:
openjdk version "17-panama" 2021-09-14
OpenJDK Runtime Environment (build 17-panama+3-167)
OpenJDK 64-Bit Server VM (build 17-panama+3-167, mixed mode, sharing)
* Builded DLL with use of C++/WinRT.

Example:
build simple dll with one function when is used call wcout (with concating
of multiple wide string) in Microsoft Visual Studio 2019

Note: problem only when build DLL is in RELEASE x64, after build DLL in
DEBUG is all ok

Sample output wcout from funcion in DLL is:
java --enable-preview --add-modules jdk.incubator.foreign
--enable-native-access=ALL-UNNAMED
-Djava.library.path=lib/helloworldwinrt/target -classpath
target/classes;lib/target/jar/*
com.github.tornaia.panama.tutorial005.Tutorial005
WARNING: Using incubator modules: jdk.incubator.foreign
Start
B l u e t o o t h   a d d r e s s :   1 8 1 1 6 1 4 6 6 0 6 3 2 1 3
 End

After each character is one space!

In case need I can attach SSCCE.

With regards Ladislav


More information about the panama-dev mailing list