Hope I got your attention with the subject ;)
After having had help on the list I managed to write UTF8 text to the Windows Vista console using 2.6
However, my test program (see attachment) fails on trunk.
See
http://lazarus.freepascal.org/index.php/topic,17548 for discussion (initially about other problem)
Also had a look at
This works in FPC 2.7.1:
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),@s[1],length(s),bw,nil); ... but seems to be Windows-only.
What am I missing and what is the easiest cross-platform way to output/accept UTF8 text to/from the console?
Should I set the console codepage back to the one in use before the program ran? Should I also mess with SetConsoleCP and/or SetTextCodePage?
Thanks,
Reinier
