Re: [fpc-pascal] Does Free Vision support utf8 on unix?

2016-08-09 Thread Jonas Maebe
Juan Francisco Cantero Hurtado wrote:
> Does Free Vision support utf8 on unix? This example builds fine on Linux
> but the second messagebox shows weird symbols:
> 
[sip]
> Is this bug known or should I report it in the bug tracker?

It is known: http://bugs.freepascal.org/view.php?id=21373

See also the comment there why it would be very hard to fix.


Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Does Free Vision support utf8 on unix?

2016-08-09 Thread Graeme Geldenhuys
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. 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
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Does Free Vision support utf8 on unix?

2016-08-09 Thread Jonas Maebe
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.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Does Free Vision support utf8 on unix?

2016-08-09 Thread Graeme Geldenhuys
On 2016-08-09 09:06, 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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Does Free Vision support utf8 on unix?

2016-08-09 Thread Juan Francisco Cantero Hurtado

On 09/08/16 10:06, Jonas Maebe wrote:

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".


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] Google Calendar API and unsupported exception

2016-08-09 Thread Lubos Pintes

Hello,
I am again here with questions about Google API. I am currently creating 
a console application for testing. Because it doesn't work, I tried to 
compile a fresh FPC trunk in the hope that prpoblem was fixed there.

I am trying to obtain a calendar list:
  Res := Calendar.API.CreateCalendarListResource;
!  List := Res.List('');
  Calendar.SaveSession;
  if List <> nil then for Entry in List.Items do writeln(Entry.description)

And I receive an exception on the marked line:
An unhandled exception occurred at $00451627:
ERESTAPI: TCalendarList: unsupported array element type :
... and after that some nice useless hex numbers.
The "-gl" switch only tells me that I have an exception on line 92 in my 
project, that is good but insufficient.

Am I doing something wrong, or there is a bug somewhere in the library?
Do I have to send whole program somewhere? It is not a problem of 
course, I just thought that snipped I provided could be sufficient.

Thanks!

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal