Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-08

gnugettext

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Carsten Bager

Hi

I am using the gnugettext unit on Linux (Arm9), but when using Russian as translated language I have a problem. All Russian chars are returned as "?"

I believe the problem is in the system unit, everything looks fine (debug output from gnugettext) but it looks like when translated in gettext output is converted by the system (maybe by Ansi2WideMove).

Anybody have an idea where to go from here.

Carsten

Michael Van Canneyt
to Carsten Bager
Carsten Bager wrote 10 lines
Hi I am using the gnugettext unit on Linux (Arm9), but when using Russian as translated language I have a problem. All Russian chars are returned as "?" I believe the problem is in the system unit, everything looks fine (debug output from gnugettext) but it looks like when translated in gettext output is converted by the system (maybe by Ansi2WideMove). Anybody have an idea where to go from here.

Did you add cwstring to the uses clause of your program ? Without it, you won't have access to the recoding routines.

Michael.

Carsten Bager
to Michael Van Canneyt
Did you add cwstring to the uses clause of your program ? Without it, you won't have access to the recoding routines.

I do not have to do that the compiler it self calles fpc_widestr_to_ansistr witch then calles Wide2AnsiMoveProc in this proces I lose the the russian translation.

Carsten

Jonas Maebe
to Carsten Bager
Carsten Bager wrote 8 lines
> Did you add cwstring to the uses clause of your program ? Without it, > you won't have access to the recoding routines. I do not have to do that the compiler it self calles fpc_widestr_to_ansistr witch then calles Wide2AnsiMoveProc in this proces I lose the the russian translation.

The cwstring unit replaces the procvar called by fpc_widestr_to_ansistr

Jonas