@Hartmut
All this means that your console in fact UTF-8, not CP850, and "locale charmap" confirms it, as you wrote.
How do you setup CP for console? If you use Gnome Console Profile settings, it fools you. It simply shows output in other encoding, not really changes CP of console, which leads to garbage.
You have to set LANG environment variable.
But first check what locales are available at your system by "locale -a". Is there any locale with CP850 at its output?
For example, I have C, POSIX and several UTF-8 locales. If I set LANG to anything other, pascal program outputs 20127 (i.e ASCII), which corresponds to
$ locale -c charmap
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LC_CTYPE
ANSI_X3.4-1968
which is the same as 20127.