[fpc-pascal] Unicode filenames

2008-06-29 Thread Vincent Snijders
How does the RTL support using unicode filenames (e.g. file names that cannot be represented by the ansi char set)? For example the FileExists function takes a string which is encoded in the system char set. If the system char set is UTF8, like most linuxes and Mac OS X, then there is no probl

Re: [fpc-pascal] small bug with pass-by-reference on array elem

2008-06-29 Thread Jonas Maebe
On 28 Jun 2008, at 23:55, David Emerson wrote: {$mode objfpc} procedure assign_it (out x : longint); begin x := 7; end; var a : array [0..1] of longint; b : longint; begin assign_it (b); // no warning assign_it (a[1]); // errant warning issued end. This bug has already

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Jonas Maebe
On 29 Jun 2008, at 09:27, Vincent Snijders wrote: How does the RTL support using unicode filenames (e.g. file names that cannot be represented by the ansi char set)? It doesn't. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Martin Schreiber
On Sunday 29 June 2008 09.27:24 Vincent Snijders wrote: > How does the RTL support using unicode filenames (e.g. file names that > cannot be represented by the ansi char set)? > > For example the FileExists function takes a string which is encoded in > the system char set. If the system char set is

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Jonas Maebe
On 29 Jun 2008, at 09:43, Jonas Maebe wrote: On 29 Jun 2008, at 09:27, Vincent Snijders wrote: How does the RTL support using unicode filenames (e.g. file names that cannot be represented by the ansi char set)? It doesn't. See also http://bugs.freepascal.org/view.php?id=7863 Jonas

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Marco van de Voort
> How does the RTL support using unicode filenames (e.g. file names that > cannot be represented by the ansi char set)? As said on IRC, afaik decisions about this have been continuously postponed. There are some problems: - If the border condition that w9x must remain supported persists, this

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Vincent Snijders
Marco van de Voort schreef: What are the exact plans of Lazarus in this? Is there some wiki page with how Lazarus plans to tackle this with all multi-platform concerns? All strings the LCL are UTF8, see http://wiki.lazarus.freepascal.org/LCL_Unicode_Support For windows this means all strin

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Marco van de Voort
> Marco van de Voort schreef: > > What are the exact plans of Lazarus in this? Is there some wiki page with > > how Lazarus plans to tackle this with all multi-platform concerns? > > All strings the LCL are UTF8, see > http://wiki.lazarus.freepascal.org/LCL_Unicode_Support > > For windows this

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Graeme Geldenhuys
2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: > How does the RTL support using unicode filenames (e.g. file names that > cannot be represented by the ansi char set)? > > For example the FileExists function takes a string which is encoded in the > system char set. If the system char set is UTF8, l

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: How does the RTL support using unicode filenames (e.g. file names that cannot be represented by the ansi char set)? For example the FileExists function takes a string which is encoded in the system char set. If the syste

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Martin Schreiber
On Sunday 29 June 2008 13.10:33 Marco van de Voort wrote: > > - Which encoding(s) to support (utf-8 and/or utf-16 mostly) In order to complement Graemes mail, MSEgui uses widestrings for everything. Martin ___ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Graeme Geldenhuys
2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: > > I see you are crippled in the same way as the LCL, because you only can > handle ansi filenames correctly. fpGUI was tested under Windows with Russian locale and filenames. Not tested by me, but my a co-developer (Vladimir). He reported that the

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Felipe Monteiro de Carvalho
On Sun, Jun 29, 2008 at 6:32 AM, Marco van de Voort <[EMAIL PROTECTED]> wrote: > - If the border condition that w9x must remain supported persists, this > becomes a magnitude more work. A way to deal with this has to be found > (two win32 FPC releeases, one advocated as D2..D2006 compat + w9x, on

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Felipe Monteiro de Carvalho
On Sun, Jun 29, 2008 at 3:19 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > fpGUI was tested under Windows with Russian locale and filenames. Not > tested by me, but my a co-developer (Vladimir). He reported that the > file dialogs and other file related functions worked correctly. He > actuall

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Felipe Monteiro de Carvalho
> procedure AnyFileRoutineInWin32(AFileName: widestring); > begin > if UnicodeEnabledOS then SomeWin32APIW() > else AnsiToWideString(SomeWin32ApiA()) > end; If you want even more details you can initialize UnicodeEnabledOS by reading the operating system version and the operating system type NT/

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: I see you are crippled in the same way as the LCL, because you only can handle ansi filenames correctly. fpGUI was tested under Windows with Russian locale and filenames. Not tested by me, but my a co-developer (Vladimi

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: I see you are crippled in the same way as the LCL, because you only can handle ansi filenames correctly. fpGUI was tested under Windows with Russian locale and filenames. Not tested by me, but my a co-developer (Vladimi

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Graeme Geldenhuys
2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: > > If you create a file with a russian name on your hard disk, can you use > fpgFileExists to check for its existence? My Windows doesn't contain a Russian locale, but I tried it with French, German etc names and it works. I asked Vladimir to create

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Graeme Geldenhuys
2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: > > If you create a file with a russian name on your hard disk, can you use > fpgFileExists to check for its existence? I did a test and sent a screenshot of the results. I don't know what's the limit of attachments in this mailing list. So let me k

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Felipe Monteiro de Carvalho
On Sun, Jun 29, 2008 at 8:06 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > I did a test and sent a screenshot of the results. I don't know what's > the limit of attachments in this mailing list. So let me know if the > attachment didn't go through. The file was 22kb in size. Nothing arived h

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Tomas Hajny
On 29 Jun 08, at 20:48, Felipe Monteiro de Carvalho wrote: > On Sun, Jun 29, 2008 at 8:06 PM, Graeme Geldenhuys > <[EMAIL PROTECTED]> wrote: > > I did a test and sent a screenshot of the results. I don't know what's > > the limit of attachments in this mailing list. So let me know if the > > attac

Re: [fpc-pascal] Unicode filenames

2008-06-29 Thread Vincent Snijders
Graeme Geldenhuys schreef: 2008/6/29 Vincent Snijders <[EMAIL PROTECTED]>: If you create a file with a russian name on your hard disk, can you use fpgFileExists to check for its existence? My Windows doesn't contain a Russian locale, but I tried it with French, German etc names and it works. I