Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Jürgen Hestermann
Marcos Douglas schrieb: If RTL is AnsiString (for now), why we have UTF8 functions in RTL? There are none. But you wrote a constant string in the IDE. And the IDE uses UTF8 for your code. So you have to convert it before feeding it into functions of the RTL. If you feed it to functions of

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Jürgen Hestermann
Hans-Peter Diettrich schrieb: When I go to http://svn.freepascal.org/svn/fpcdocs/trunk; it is empty. Not here, try again. Still the same. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Jürgen Hestermann
When I go to http://svn.freepascal.org/svn/fpcdocs/trunk; it is empty. I just found out that active scripting is required for this web page (I use the FireFox NoScript plugin). Is there a reason for this? -- ___ Lazarus mailing list

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Michael Van Canneyt
On Sun, 15 Apr 2012, Jürgen Hestermann wrote: When I go to http://svn.freepascal.org/svn/fpcdocs/trunk; it is empty. I just found out that active scripting is required for this web page (I use the FireFox NoScript plugin). Is there a reason for this? You are wrong. No scripting is

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Mattias Gaertner
On Sun, 15 Apr 2012 07:16:15 +0200 Martin Schreiber mse00...@gmail.com wrote: On Saturday 14 April 2012 22:36:02 Marcos Douglas wrote: Well, works if I change this line: fname := 'c:\á b ç\á.txt'; to this: fname := UTF8Decode('c:\á b ç\á.txt'); And doesn't matter if fname is

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Martin Schreiber
On Sunday 15 April 2012 11:32:21 Mattias Gaertner wrote: cpstrnew is part of fpc 2.7.1 and Lazarus runs fine with it since two months. The -Fcutf8 and {$codepage utf8} exists since ages. I meant the combination of -Fcutf8, cpstrnew, and the Lazarus UTF8String which should be possible in FPC

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Mattias Gaertner
On Sun, 15 Apr 2012 11:44:15 +0200 Martin Schreiber mse00...@gmail.com wrote: On Sunday 15 April 2012 11:32:21 Mattias Gaertner wrote: cpstrnew is part of fpc 2.7.1 and Lazarus runs fine with it since two months. The -Fcutf8 and {$codepage utf8} exists since ages. I meant the

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Martin Schreiber
On Sunday 15 April 2012 12:35:08 Mattias Gaertner wrote: On Sun, 15 Apr 2012 11:44:15 +0200 Martin Schreiber mse00...@gmail.com wrote: On Sunday 15 April 2012 11:32:21 Mattias Gaertner wrote: cpstrnew is part of fpc 2.7.1 and Lazarus runs fine with it since two months. The -Fcutf8

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Mattias Gaertner
On Sun, 15 Apr 2012 13:00:12 +0200 Martin Schreiber mse00...@gmail.com wrote: On Sunday 15 April 2012 12:35:08 Mattias Gaertner wrote: On Sun, 15 Apr 2012 11:44:15 +0200 Martin Schreiber mse00...@gmail.com wrote: On Sunday 15 April 2012 11:32:21 Mattias Gaertner wrote: cpstrnew is

[Lazarus] [Lazarusdev] WinCE users please

2012-04-15 Thread Martin
Can anyone test, if rev 36792 (trunk only / not in fixes branch) works on WinCE? Please compile with WinIME defined. http://bugs.freepascal.org/view.php?id=21663 http://bugs.freepascal.org/view.php?id=21664 ___ Lazarusdev mailing list

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Martin Schreiber
On Sunday 15 April 2012 13:33:05 Mattias Gaertner wrote: On Sun, 15 Apr 2012 13:00:12 +0200 I assume Lazarus uses that string type everywhere where it expects utf-8, same as MSEgui uses msestring (=UnicodeString) everywhere it expects utf-16? UnicodeString has a clear advantage versus

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Mattias Gaertner
On Sun, 15 Apr 2012 14:25:51 +0200 Martin Schreiber mse00...@gmail.com wrote: On Sunday 15 April 2012 13:33:05 Mattias Gaertner wrote: On Sun, 15 Apr 2012 13:00:12 +0200 I assume Lazarus uses that string type everywhere where it expects utf-8, same as MSEgui uses msestring

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Marco van de Voort
On Sun, Apr 15, 2012 at 12:35:08PM +0200, Mattias Gaertner wrote: I'm not sure what you mean with the Lazarus UTF8String. There is UTF8String = type AnsiString(CP_UTF8) defined in system.pp. Under Linux and OS X any LCL application gets DefaultSystemCodePage:=CP_UTF8, so all strings

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Martin Schreiber
On Sunday 15 April 2012 14:59:21 Mattias Gaertner wrote: Basically if you use utf8string you get a string that forces UTF-8. And if you use String (= AnsiString(CP_ACP) if my assumption about current FPC trunk is correct) it forces it to the 8bit system encoding. The only stringtype which

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Marco van de Voort
On Sun, Apr 15, 2012 at 03:24:32PM +0200, Martin Schreiber wrote: Basically if you use utf8string you get a string that forces UTF-8. And if you use String (= AnsiString(CP_ACP) if my assumption about current FPC trunk is correct) it forces it to the 8bit system encoding. The only

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Martin Schreiber
On Sunday 15 April 2012 15:37:15 Marco van de Voort wrote: On Sun, Apr 15, 2012 at 03:24:32PM +0200, Martin Schreiber wrote: Basically if you use utf8string you get a string that forces UTF-8. And if you use String (= AnsiString(CP_ACP) if my assumption about current FPC trunk is

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Graeme Geldenhuys
On 15 April 2012 13:00, Martin Schreiber wrote: as MSEgui uses msestring (=UnicodeString) everywhere it expects utf-16? Sorry to nitpick, but I presume you meant everywhere it expects UCS2. MSEgui doesn't fully support UTF-16, and UCS2 UTF-16. ps: I'm with Mattias on the -Fcutf8 being able

Re: [Lazarus] [Lazarusdev] WinCE users please

2012-04-15 Thread Fabio Luis Girardi
With some specific FPC version? 2012/4/15 Martin laza...@mfriebe.de: Can anyone test, if rev 36792 (trunk only / not in fixes branch) works on WinCE? Please compile with   WinIME defined. http://bugs.freepascal.org/view.php?id=21663 http://bugs.freepascal.org/view.php?id=21664

Re: [Lazarus] [Lazarusdev] WinCE users please

2012-04-15 Thread Martin
On 15/04/2012 16:58, Fabio Luis Girardi wrote: With some specific FPC version? 2.4.4 or 2.6.0 or 2.5.1 please 2012/4/15 Martinlaza...@mfriebe.de: Can anyone test, if rev 36792 (trunk only / not in fixes branch) works on WinCE? Please compile with WinIME defined. --

Re: [Lazarus] disable package checking

2012-04-15 Thread Mattias Gaertner
On Wed, 11 Apr 2012 15:43:47 +0200 Mattias Gaertner nc-gaert...@netcologne.de wrote: [...] What reason is given for the recompile? Target: FCL 1.0.1 Build needed. File: /opt/lazarus/packager/registration/fcl.lpk Note: FPC unit /home/benito/hg/components/pascal/data/pseudoxpath.pas

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Mattias Gaertner
On Sun, 15 Apr 2012 15:58:24 +0200 Martin Schreiber mse00...@gmail.com wrote: On Sunday 15 April 2012 15:37:15 Marco van de Voort wrote: On Sun, Apr 15, 2012 at 03:24:32PM +0200, Martin Schreiber wrote: Basically if you use utf8string you get a string that forces UTF-8. And if you

Re: [Lazarus] Best practices on using classes for subroutine libraries

2012-04-15 Thread Joao Morais
On Sat, Apr 14, 2012 at 04:23, Frank Church vfcli...@gmail.com wrote: Is it possible to make them virtual and override them or replace them in descendant classes? {$mode objfpc} type tfooclass = class of tfoo; tfoo = class public class function m1: string; virtual;

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Jürgen Hestermann
Michael Van Canneyt schrieb: When I go to http://svn.freepascal.org/svn/fpcdocs/trunk; it is empty. I just found out that active scripting is required for this web page (I use the FireFox NoScript plugin). Is there a reason for this? You are wrong. No scripting is needed for this page. Well,

Re: [Lazarus] TProcess, UTF8, Windows

2012-04-15 Thread Martin Schreiber
On Monday 16 April 2012 00:04:41 Mattias Gaertner wrote: On Sun, 15 Apr 2012 15:58:24 +0200 Martin Schreiber mse00...@gmail.com wrote: And probably Mattias is wrong if he thinks String in FPC trunk does not enforce encoding if I understood correctly. string enforces an 8-bit type. It