Sign in Join

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

Mailing lists / fpc-pascal / 2016-08

Does Free Vision support utf8 on unix?

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Juan Francisco Cantero Hurtado

Does Free Vision support utf8 on unix? This example builds fine on Linux but the second messagebox shows weird symbols:

program TestFV;
uses App, MsgBox;
type
          TMyAPP = object(TApplication)
          end;
var
          MyApp: TMyApp;
begin
          MyApp.Init;
          MessageBox('aeiou', nil, mfWarning or mfOKButton);
          MessageBox('áéíóú', nil, mfWarning or mfOKButton);
          MyApp.Run;
          MyApp.Done;
end.

Is this bug known or should I report it in the bug tracker?

Reply by email

Graeme Geldenhuys
to Juan Francisco Cantero Hurtado: Does Free Vision support utf8 on unix? This example builds fine on Linux but the second…
Juan Francisco Cantero Hurtado wrote
Is this bug known or should I report it in the bug tracker?

I don't know if it supports full Unicode (I doubt), but it does support some extended characters. For example: If I run the Text IDE (fp) and select Help -> About, I see a dialog where a name in the credits use some of those extended characters you listed. It displays perfectly under FreeBSD and Linux using Mate Terminal.

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
On 2016-08-08 19:54, Juan Francisco Cantero Hurtado wrote: > Is this bug known or should I report it in the bug tracker? I don't know if it supports full Unicode (I doubt), but it does support some extended characters.

I think it only supports what is in code page 437, because that's the code page that was used under DOS for Turbo Vision (and it's a compatibility package). Since Free Vision nor the video unit doesn't have nor never had any support for code page translation, you would have to ensure that all strings you pass it are in that encoding.

Jonas

Reply by email

Graeme Geldenhuys
to Jonas Maebe
Jonas Maebe wrote
I think it only supports what is in code page 437, because that's the code page that was used under DOS for Turbo Vision

That makes sense - thanks for the explanation.

Regards,
Graeme

Reply by email

Juan Francisco Cantero Hurtado
to Jonas Maebe: I think it only supports what is in code page 437, because that's the code page that was…
Jonas Maebe wrote 12 lines
Graeme Geldenhuys wrote: > On 2016-08-08 19:54, Juan Francisco Cantero Hurtado wrote: >> Is this bug known or should I report it in the bug tracker? > > I don't know if it supports full Unicode (I doubt), but it does support > some extended characters. I think it only supports what is in code page 437, because that's the code page that was used under DOS for Turbo Vision (and it's a compatibility package). Since Free Vision nor the video unit doesn't have nor never had any support for code page translation, you would have to ensure that all strings you pass it are in that encoding.

Thanks for the help!. Using this script
https://gist.github.com/inky/471524 against the code, the problem is "gone".

Reply by email