Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Marcos Douglas
On Thu, Dec 26, 2013 at 1:04 PM, Marco van de Voort wrote: > On Thu, Dec 26, 2013 at 12:28:54AM +0100, Hans-Peter Diettrich wrote: >> > is dangerous if they are not all the same encoding. If there is any >> > mismatch, it will be converted down to default encoding. >> >> Then the implementation is

Re: [Lazarus] Beyond Compare 4 built with Lazarus 1.2

2013-12-26 Thread Marcos Douglas
On Thu, Dec 26, 2013 at 6:06 AM, Martin Schreiber wrote: > > On Thursday 26 December 2013 03:45:19 Marcos Douglas wrote: > > > > "As long as the language and libraries agree on an encoding I don't > > really care whether it's UTF-8 or UTF-16" > > > > +1 > > > Actually this is the MSElang approach.

Re: [Lazarus] Ubuntu 14.04 LTS - Any plans to include 1.0.x on it?

2013-12-26 Thread Graeme Geldenhuys
On 2013-12-26 17:29, Alexsander Rosa wrote: > Target OS: Linux for i386 > Compiling lazcontrols.pas > Compiling treefilteredit.pas > treefilteredit.pas(28,48) Error: Illegal expression > treefilteredit.pas(28,48) Error: Error in type definition > treefilteredit.pas(28,48) Fatal: Syntax error, ">" e

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Sven Barth
On 26.12.2013 17:02, Sven Barth wrote: Am 26.12.2013 12:30 schrieb "Hans-Peter Diettrich" mailto:drdiettri...@aol.com>>: > > Sven Barth schrieb: >> >> Am 26.12.2013 02:19 schrieb "Hans-Peter Diettrich" mailto:drdiettri...@aol.com> >>:

Re: [Lazarus] Ubuntu 14.04 LTS - Any plans to include 1.0.x on it?

2013-12-26 Thread Alexsander Rosa
One example (compiling lazarus 1.0.14 on a Linux 64-bit machine with 32-bit FPC 2.6.2): /bin/rm -f lib/i386-linux/nogui/lazcontrols.ppu /usr/bin/ppc386 -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -dLCL -dLCLnogui -Fu../../lcl/units/i386-linux/nogui -Fu../../lcl/units/i386-linux -Fu../lazutils/lib/i386-l

Re: [Lazarus] Ubuntu 14.04 LTS - Any plans to include 1.0.x on it?

2013-12-26 Thread Alexsander Rosa
2013/12/25 Graeme Geldenhuys > On 2013-12-23 13:02, Alexsander Rosa wrote: > > Every time I need to install Lazarus on Windows I envy the ease of > > installation. > > Learn to install from source (repository) - it always works, and on any > system. > My problem is the cross-compiling: we publi

Re: [Lazarus] Application Information

2013-12-26 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 26/12/2013 10:11, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 26/12/2013 09:26, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: OK, I'll do a very basic page "Show Application Title, Version, and Company" i.e. similar to the existing one that somebody'

Re: [Lazarus] OT: Re: Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Sven Barth
Am 26.12.2013 11:25 schrieb "Mark Morgan Lloyd" < markmll.laza...@telemetry.co.uk>: > Now obviously this is extremely remote, but at some point the compiler might have an interest in parsing non-ASCII text. Rather more pressing is making sure that highlighters etc. don't throw a fit as soon as they

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Sven Barth
Am 26.12.2013 12:30 schrieb "Hans-Peter Diettrich" : > > Sven Barth schrieb: >> >> Am 26.12.2013 02:19 schrieb "Hans-Peter Diettrich" >> >: > Please specify "AnsiString", of which encoding? > > When I concat an AnsiString and an UTF8String and assign it to an OEMString > o := a + u; > then I get

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Marco van de Voort
On Thu, Dec 26, 2013 at 12:28:54AM +0100, Hans-Peter Diettrich wrote: > > is dangerous if they are not all the same encoding. If there is any > > mismatch, it will be converted down to default encoding. > > Then the implementation is wrong. Wrong according to you. Not wrong according to defined

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Juha Manninen
It happened again. The word "Unicode" was mentioned and the result is an endless debate of how it should be done. Now > 100 messages and counting ... I personally don't care much what the default encoding will be, but I wonder how easy it will be to use UTF-8 for my employer's code. The situation

Re: [Lazarus] Beyond Compare 4 built with Lazarus 1.2

2013-12-26 Thread Marco van de Voort
On Wed, Dec 25, 2013 at 08:10:36PM -0600, Craig Peterson wrote: > > Wonder no more: > 1) "string" uses a Unicode encoding > 2) AnsiString/UTF8String casts perform appropriate conversions > 3) File APIs support Unicode filenames > 4) Windows headers use W version by default. > 5) LCL and RTL agree

Re: [Lazarus] Application Information

2013-12-26 Thread Reinier Olislagers
On 26/12/2013 10:11, Mark Morgan Lloyd wrote: > Reinier Olislagers wrote: >> On 26/12/2013 09:26, Mark Morgan Lloyd wrote: >>> Reinier Olislagers wrote: >>> OK, I'll do a very basic page "Show Application Title, Version, and >>> Company" i.e. similar to the existing one that somebody's filled with

Re: [Lazarus] Adding shapes to TShape

2013-12-26 Thread Frederic Da Vitoria
2013/12/26 Howard Page-Clark > On 26/12/2013 12:03, Frederic Da Vitoria wrote: > Should I > >> forget about deriving TShape and should I directly modify TShape's code? >> > > For a project that needed something similar I found that TShape with its > fixed TShapeType enumeration was too inflexib

Re: [Lazarus] Adding shapes to TShape

2013-12-26 Thread Howard Page-Clark
On 26/12/2013 12:03, Frederic Da Vitoria wrote: Should I forget about deriving TShape and should I directly modify TShape's code? For a project that needed something similar I found that TShape with its fixed TShapeType enumeration was too inflexible (though it is Delphi-compatible, hence i

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Marco van de Voort
On Wed, Dec 25, 2013 at 10:43:24PM +0100, Jy V wrote: > Sorry Marco, No problem. > On Wed, Dec 25, 2013 at 6:15 PM, Marco van de Voort wrote: > > > There is no utf8 on Windows. One can try to mess with the defaultcodepage, > > but that will probably only force a different kind of problems. > >

[Lazarus] Adding shapes to TShape

2013-12-26 Thread Frederic Da Vitoria
Hello, For a game, I need to be able to draw geometric shapes. TShape is perfect except for one missing feature: TShape only draws triangles pointing up, and I need also triangles pointing left, right and down. My first reaction was to create a derived class, and try to somehow add the missing sha

Re: [Lazarus] Beyond Compare 4 built with Lazarus 1.2

2013-12-26 Thread Hans-Peter Diettrich
Craig Peterson schrieb: On Dec 25, 2013, at 5:11 PM, Hans-Peter Diettrich wrote: I wonder what exact "support" he means. Wonder no more: 1) "string" uses a Unicode encoding 2) AnsiString/UTF8String casts perform appropriate conversions 3) File APIs support Unicode filenames 4) Windows headers

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Hans-Peter Diettrich
Sven Barth schrieb: Am 26.12.2013 02:19 schrieb "Hans-Peter Diettrich" >: > > Sven Barth schrieb: > > >> If in 2.6.2 your three strings contain text of different encodings then the resulting string might be garbage from the user's POV. >> In trunk the encoding

Re: [Lazarus] OT: Re: Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: Why these questions bother you? This question as such does not bother me. The endless repetitive discussions about U[1] with armchair theorists repeating the same arguments they used the previous discussion does. Currently, people are working on getting U[1] support

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Jürgen Hestermann
Am 2013-12-25 19:50, schrieb Marco van de Voort: > In short, I don't think fighting the native encoding of an target is worth > the shallow appeal of the "one encoding rules all" principle. That is mostly > pushed by people that don't even use windows, and thus won't feel the pain. This is not tr

Re: [Lazarus] Application Information

2013-12-26 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 26/12/2013 09:26, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 25/12/2013 20:16, Mark Morgan Lloyd wrote: I don't pretend to understand all the cross-platform issues and I was trying to avoid work :-) Very understandable ;) There'll be something there i

Re: [Lazarus] Souce listing on Mac

2013-12-26 Thread Tom Backer Johnsen
Howard I have to admit that I was looking for something simpler than a change in the source and recompile of the IDE, I would like to avoid that as long as possible. But thank you for the suggestion anyhow, it may be useful. I'll wait and see if something simpler turns up. Tom On 25. Dec 20

Re: [Lazarus] Beyond Compare 4 built with Lazarus 1.2

2013-12-26 Thread Sven Barth
Am 26.12.2013 03:11 schrieb "Craig Peterson" : > > On Dec 25, 2013, at 5:11 PM, Hans-Peter Diettrich wrote: > > I wonder what exact "support" he means. > > Wonder no more: Most of these already apply to 2.7.1, you just need to wait for 2.8.0 to be released somewhen (hopefully) next year :) > 1)

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Sven Barth
Am 26.12.2013 02:19 schrieb "Hans-Peter Diettrich" : > > Sven Barth schrieb: > > >> If in 2.6.2 your three strings contain text of different encodings then the resulting string might be garbage from the user's POV. >> In trunk the encoding is part of each string and if they differ then each strings

Re: [Lazarus] Application Information

2013-12-26 Thread Reinier Olislagers
On 26/12/2013 09:26, Mark Morgan Lloyd wrote: > Reinier Olislagers wrote: >> On 25/12/2013 20:16, Mark Morgan Lloyd wrote: > I don't pretend to understand all the cross-platform issues and I was > trying to avoid work :-) Very understandable ;) In the end, any contribution is better than none - pe

Re: [Lazarus] Application Information

2013-12-26 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: On 25/12/2013 20:16, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: On 23/12/2013 20:13, Mark Morgan Lloyd wrote: Cross-platform; see http://wiki.lazarus.freepascal.org/fcl-res there's file version code in fcl-res as well. I don't think there's a well-named Wiki p

Re: [Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

2013-12-26 Thread Sven Barth
Am 26.12.2013 00:24 schrieb "Marcos Douglas" : > > On Wed, Dec 25, 2013 at 7:41 PM, Sven Barth wrote: > > Am 25.12.2013 19:19 schrieb "Marcos Douglas" : > >> > Since that means typically two per target, it was suggested to combine > >> > this > >> > using dotted unit functionality. > >> > >> I did

Re: [Lazarus] Beyond Compare 4 built with Lazarus 1.2

2013-12-26 Thread Martin Schreiber
On Thursday 26 December 2013 03:45:19 Marcos Douglas wrote: > > "As long as the language and libraries agree on an encoding I don't > really care whether it's UTF-8 or UTF-16" > > +1 > Actually this is the MSElang approach. MSElang supports "string8" (utf-8), "string16" (utf-16), "string32" (UCS4)