Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-30 Thread Noah Silva
; >> > > not even have the fonts for and then complains that the program doesn't > > work. The answer will be "We only support Japanese systems." > > Those are business decisions, which are irrelevant to the FPC RTL. Our > code is written as much as possible to w

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-29 Thread Noah Silva
Hi, 2013/7/29 Michael Schnell > On 07/29/2013 07:36 AM, Noah Silva wrote: > > >> Using UTF16 for internal string handling is a sensible option. > > It depends. > UTF-16 needs more memory used > No, UTF16 only needs more memory if most of the text is ASCII. It actu

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-29 Thread Noah Silva
Hi, 2013/7/29 Jonas Maebe > > On 29 Jul 2013, at 08:01, Noah Silva wrote: > > > Oddly enough, I can get my (2.6.1) version to change the garbage it shows > > but but saving the file as UTF8 with BOM. (Until now, I had been using > > UTF8 w/o BOM). > > If your

[fpc-pascal] Re: Console Encoding in Windows (Local VS. UTF8)

2013-07-28 Thread Noah Silva
teConsole, I searched and found this: http://forum.lazarus.freepascal.org/index.php?topic=17548.0 (svn: 37432) thank you, Noah Silva 2013/7/9 Noah Silva > Hi, > > I deal with in Japanese (and sometimes other languages) in a lot of my > programs, and nothing I do seems to

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-28 Thread Noah Silva
d. (Looking at the difference in handling, the BOM way seems much more convenient, so I will convert things over to that...) Jonas > Thank you, Noah Silva > __**_ > fpc-pascal maillist - > fpc-pascal@lists.freepascal.**org > http:

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-28 Thread Noah Silva
Hi, 2013/7/9 Michael Schnell > On 07/09/2013 11:02 AM, Noah Silva wrote: > >> >> I convert it to UTF8 before displaying it >> >> Not a good idea. > > Well if the console is UTF8 > The FPC developers are right now busy implementing the new Delph

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-28 Thread Noah Silva
Hi, 2013/7/9 Jonas Maebe > > On 09 Jul 2013, at 11:02, Noah Silva wrote: > > 1. What encoding "should" I be writing to the terminal? >> > > The console code page. You can get it using the following function: > function GetConsoleOutputCP : UI

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-28 Thread Noah Silva
version: Lazarus 1.1 2012-11-06 FPC 2.6.1 SVN 37432 x86_64-win64-win32/win64 (I have various other versions installed, but all on OS X machines...) Tomas > > thank you, Noah Silva > > ___ > fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-28 Thread Noah Silva
work when I use UTF8ToAnsi to convert the text before writing it, but it doesn't. Since it works with other programs and things like the "type" command, it occurred to be that it might be a FPC issue, or that I might be interfering with some bu

Re: [fpc-pascal] Executable with invisible window and IO enabled

2013-07-20 Thread Noah Silva
e was written in C and executed much faster than your VB code would if you wrote the sorting routine yourself). Thank you, Noah Silva 2013/7/16 Graeme Geldenhuys > On 2013-07-16 09:10, Michael Van Canneyt wrote: > > > > You should compile this app with $apptype GUI, and disa

Re: [fpc-pascal] Strings

2013-07-20 Thread Noah Silva
something?) Thank you, Noah Silva 2013/7/16 Carsten Bager > My code was just an example, to illustrate what I was aiming at. It is not > actually used. > But I think you have a point > > Carsten > > > Why not just skip all the encoding uncertainity of strings

Re: [fpc-pascal] Sockets?

2013-07-20 Thread Noah Silva
Hi, I'll second that,I use Synapse for any internet related things I need to do, and it seems to work great. Thank you, Noah Silva 2013/7/18 Michael Schnell > Synapse makes handling of sockets rather easy. > > -Michael > > __**__

Re: [fpc-pascal] Getting the current Unit Name

2013-07-20 Thread Noah Silva
Hi Mattias, I have several different versions on different machines, so I will check it out. Thank you for the hint! Thank you, Noah Silva 2013/7/14 Mattias Gaertner > On Sun, 14 Jul 2013 09:13:42 +0900 > Noah Silva wrote: > > > Hi, > > > > In Delphi,

Re: [fpc-pascal] MAC window creation / Management / OpenGL

2013-07-20 Thread Noah Silva
f you try things out and have points you don't understand. Thank you, Noah Silva 2013/7/12 Kirill Kranz > Hi, > > I need to knew who to create a window under OSX and handle menu. Also it > would be nice to init OpenGL. No GLUT, NSGL would be fine. > > need a complete exa

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-14 Thread Noah Silva
at only support > the ASCII character-set. > > Yes, but the system normally will automatically switch to one that can, and f.e. the default fonts in Japanese versions of Windows can. > > Regards, > G. > > > Thank you, Noah Silva > __

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-14 Thread Noah Silva
l interfaces where possible. Besides being easier, it would be more reliable. Some how I ended up spending 14 hours at work today (a Sunday!), so I didn't have a chance to look at the hints given by others yet, but tomorrow... I may make something like a ConsoleWriteln(const s:UTF8Stri

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-13 Thread Noah Silva
ems and I can't install Cygwin everywhere. At any rate, I assume that since the console is a separate thing from the program running in it that powershell and cmd would be the same from the point of view of a program executed from them. Does powershell use a different console? T

Re: [fpc-pascal] Re: Console Encoding in Windows (Local VS. UTF8)

2013-07-13 Thread Noah Silva
o act strange. What's worse, adding UTF8ToANSI not only didn't fix the problem on Windows, it broke MacOS (because console on OS X is always UTF8, but ANSI encoding still exists, so it(s not a noop). thank you, Noah Silva 2013/7/9 Reinier Olislagers > On 9-7-2013 11:02, Noah Silva

Re: [fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-13 Thread Noah Silva
Hi, First, I want thank everyone for taking the time to answer! 2013/7/9 Jonas Maebe > > On 09 Jul 2013, at 11:02, Noah Silva wrote: > > 1. What encoding "should" I be writing to the terminal? >> > > The console code page. You can get it using th

[fpc-pascal] Getting the current Unit Name

2013-07-13 Thread Noah Silva
an easy way to just return the name of the current unit? Thank you, Noah Silva ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

2013-07-09 Thread Noah Silva
and it's ok. Something seems odd. Does anyone else have these issues? Thank you, Noah Silva p.s.: I know that the actual data in my programs isn't broken, because if I write it to a file or database, there is no problem with corruption.

Re: [fpc-pascal] I have created this 1.3G SD Card Image for Raspberry Pi - Raspbian OS with FPC + Lazarus

2013-07-08 Thread Noah Silva
handy, and doesn't seem plagued with any kind of malware. Thank you, Noah Silva 2013/7/2 Dennis Poon > ** > For new users of Raspbery Pi, you can download my SD Card image at: > > http://api.avidsoft.com.hk/fpc-arm/130702-Raspbian-Lazarus-VNC-Chrome.zip > > I have also cr

Re: [fpc-pascal] Wiki licensing

2013-07-08 Thread Noah Silva
As for platforms... I remember testing the m68k build on my Atari ST/TT. I remember it being discontinued after that though, so I suppose it's been re-resurrected, probably the TOS/GEM support is dead though. Thank you, Noah Silva 2013/7/7 Mark Morgan Lloyd > Reinier Olislage

Re: [fpc-pascal] OT: Re: http://www.freepascal.org/future.var

2013-07-05 Thread Noah Silva
I think it depends where you draw the implied parentheses. :) I (can and will) not ... I (can) and (will not) ... I also did a double take when I read that, but I don't think Japanese has any similar constructions. Thank you, Noah Silva 2013/6/6 Mark Morgan Lloyd > How

Re: [fpc-pascal] Re: String type compatibility

2013-04-03 Thread Noah Silva
Hi, If you want a 16bit version, then probably WideString? UTF8String is better for many purposes though. (Though in FPC is is currently just an alias to AnsiString). Thank you, Noah Silva 2013/4/3 Mark Morgan Lloyd > leledumbo wrote: > >> BTW, recently there are many discu

Re: [fpc-pascal] Re: a proposal about "with" syntax

2013-04-02 Thread Noah Silva
t actually allows this to be done. Theoretically you could already use "absolute" instead, but... Thank you, Noah Silva 2013/3/20 Lukasz Sokol > On 18/03/2013 03:11, Paul Ishenin wrote: > > 18.03.13, 9:27, Xiangrong Fang пишет: > >> I am sorry I didn'

Re: [fpc-pascal] Re: HMAC_SHA1 and FPC

2013-04-02 Thread Noah Silva
more likely to submit some patches to the OS X GUI for Lazarus that I have been fixing in the last week or so. We'll see. Thank you, Noah Silva p.s.: I don't see a big deal in pulling in something like Synapse so long as it compiles easily for your platform. You don't have

Re: [fpc-pascal] HMAC_SHA1 and FPC

2013-04-01 Thread Noah Silva
ows). For HMAC only though I just use Synapse. Thank you, Noah Silva 2013/3/26 Anthony Walter > On Tue, Mar 26, 2013 at 12:23 AM, silvioprog wrote: > >> Don't know why so much work if you can use it directly from the FCL. >> > > Because... > > OpenS

Re: [fpc-pascal] Re: Example: regular expressions and "hash-tables"

2013-04-01 Thread Noah Silva
though I am fairly expert with them in Java, I don't use them much in Pascal, though. Thank you, Noah Silva 2013/3/23 S. Fisher > --- On Fri, 3/22/13, Mattias Gaertner wrote: > > > From: Mattias Gaertner > > Subject: Re: [fpc-pascal] Re: Example: regular expressions and

Re: [fpc-pascal] Re: Example: regular expressions and "hash-tables"

2013-04-01 Thread Noah Silva
lse. Pascal, on the other hand, does most things well. Thank you, Noah Silva 2013/3/22 S. Fisher > --- On Thu, 3/21/13, Reinier Olislagers > wrote: > > > From: Reinier Olislagers > > Subject: [fpc-pascal] Re: Example: regular expressions and "hash-tables" >

Re: [fpc-pascal] Windows on ARM, how fast it can be implemented?

2013-03-26 Thread Noah Silva
Hi, Well windows has only about 1.5% of the tablet market, and its doubtful if that will grow - plus, as mentioned, it's closed by design. Then again, Apple's app store is restricted, and fpc supports that. Thank you, Noah Silva 2013/03/27 4:15 "Max Vlasov" : > Thank

Re: [fpc-pascal] TProcess: CommandLine deprecated

2013-03-17 Thread Noah Silva
Hi, According to this guide: http://lazarus-ccr.sourceforge.net/docs/fcl/process/tprocess.html The Executable and Parameters properties should be used instead. You may also find this interesting: http://wiki.freepascal.org/Executing_External_Programs#TProcess Thank you, Noah Silva 2013/3

Re: [fpc-pascal] Complex circular references

2012-11-26 Thread Noah Silva
Hi. I also wrote something that makes dot files for graphvis, and it does look at the implementation and interface sections. Search for pasviz. Thank you, Noah silva 2012/11/23 0:18 "denisgolovan" : > Hi all > > Now and again, I am trying to debug complex circul

Re: [fpc-pascal] Re: Editing resource of executable

2012-11-08 Thread Noah Silva
ither editing or appending the file will both change the check-sum, and thus break code-signing. You would need to have the code-signing tool be re-run as a part of the customization process. Thank you, Noah Silva 2012/8/30 Jonas Maebe > > Krzysztof wrote on Thu, 30 Aug 2012: > >

Re: [fpc-pascal] Xcode

2012-11-08 Thread Noah Silva
he App Store and has no options. If there is a "proper" way to do things, though, of course it would be better to update the documentation and installer to reflect that. I have to wonder, though, what does the official way do? The same thing I did? Or does it install separate tools? T

Re: [fpc-pascal] What is the size of AnsiChar

2012-11-08 Thread Noah Silva
ample, the original pascal spec for Copy() says it will copy X Characters, not X bytes - but FPC copies X bytes. (This means we have to use different functions to handle f.e. UTF8 strings properly). Wishing won''t make it come true, but... Thank you, Noah Silva 2012/11/5 Jonas Maebe

Re: [fpc-pascal] cannot make debugserver

2012-11-08 Thread Noah Silva
Hi bsquared, Just as an aside, the debug server included in the lazarus tools directory compiles fine for me. If you want a GUI version, you can use that one out of the box. Thank you, Noah Silva 2012/11/08 2:26 "bsquared" : > > Hello, > > I am trying to get back up t

Re: [fpc-pascal] Best way to transfer data between applications?

2012-11-01 Thread Noah Silva
Hi Jorge, Even if so, it won't solve many of the other problems I am trying to solve. On the other hand, do you have a Tarball available for download somewhere? (I checked the Google Code page, but no downloads, only SVN access it looks like). Thank you, Noah Silva 2012/11/1 Jorge

Re: [fpc-pascal] Xcode

2012-10-31 Thread Noah Silva
Hi, >but with Xcode 4.3 and later you have to install them separately Really? I just had to link them from the appropriate folder in the XCode application bundle (to the global binary folder). Perhaps this is because I used to have 3.x on the same machine? Thank you, Noah Silva 2012/8

Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-31 Thread Noah Silva
n this list - the answer seems to be "no." Encoding is one piece, data transfer is one piece, and the glue in-between (Class factories, etc.) is something one probably has to put together themselves. Either way, it makes everything more complicated to do something that is in principle re

Re: [fpc-pascal] TurboPower FlashFiler for Free Pascal

2012-10-28 Thread Noah Silva
operating systems. Another option for an all pascal solution would be one of the available XML based data stores. Thak you, Noah silva 2012/10/26 22:43 "geneb" : > On Thu, 25 Oct 2012, Ralf A. Quint wrote: > > At 11:54 PM 10/23/2012, stdreamer wrote: >> >> B-tree fil

Re: [fpc-pascal] TurboPower FlashFiler for Free Pascal

2012-10-23 Thread Noah Silva
Flash filer is ok, but you are better off with SQLite for most purposes these days. 2012/10/23 22:25 "Graeme Geldenhuys" : > Hi, > > Yeah, a catchy title! ;-) > > I want to know if anybody here has ever used FlashFiler in Delphi. Was > it a good product, and do you think it would be worth the ef

Re: [fpc-pascal] Unicodestrings and Assign(File)

2012-05-10 Thread Noah Silva
e done a lot of Unicode work, so if you have other problems let me know, I may already have written code to handle whatever the issue is, and would be happy to share it. Thank you, Noah Silva 2012/5/10 Jürgen Hestermann > Is it (already) possible to use Unicodestrings for file paths? > I

Re: [fpc-pascal] Re: Duplicate Identifier

2012-02-29 Thread Noah Silva
b.google.com/lh/photo/qXJYu68KE20oWWM2loKWTtMTjNZETYmyPJy0liipFm0?feat=directlink Thank you, Noah Silva 2012/3/1 leledumbo > That shouldn't happen. You are allowed to alias identifiers found in units > used (and that's the unit scoping rule). The only case where duplicate > i

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-28 Thread Noah Silva
thunking going on now: 1. System/SysUtils -> Win32 2. Win32 -> NT. Does .NET, etc. Actually use the Win32 APIs or NT APIs? (The runtime, obviously the programs use the .NET API...) Thank you, Noah Silva 2012/2/28 Sven Barth > Am 28.02.2012 09:47, schrieb Noah Silva: > > Hi Sv

Re: [fpc-pascal] xterm -e program-compiled-with-fpc2.4.0 doesn't work

2012-02-28 Thread Noah Silva
Hi Max, I haven't used Shell(), and I am sure others can help you there. However, I can think of at least two alternatives: 1. Use pexec() directly 2. Use TProcess or TUTF8Process. Thank you, Noah Silva 2012/2/28 max > With the advent of Debian6 fpc 2.4.0-2 has become

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-28 Thread Noah Silva
Hi Sven, >From what I've read, the NT kernel (and filesystem) support a lot of things that Windows in general doesn't. Presumably this is because it is (unofficially, of course) loosely based on VMS, but Win32 was originally designed to work with DOS, etc. Thank you, Noah Sil

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-27 Thread Noah Silva
Hi, 2012/2/25 Graeme Geldenhuys > On 24 February 2012 16:13, Henry Vermaak wrote: > > > > Because case sensitive systems don't create as much confusion > Then lets look at it from an average user's point of view. Must they > really be confronted with multiple files in a single folder named:

Re: [fpc-pascal] Re: What is the most widely used Pascal on Linux and other Unix variants?

2012-02-27 Thread Noah Silva
k). Objects everything.. yuck.. I still like simple procedural code for > teaching people and for doing quick prototypes, I think one of the biggest > mistakes of the industry is obsession with objects and not enough > education about relational techniques (http://www.dbdebunk.com) > Proce