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

2012-05-12 Thread Jürgen Hestermann
Noah Silva schrieb: Thus, the only question would be whether you have to manually convert a UnicodeString to a UTF8String or not. No, that would not help. Under Windows you can access long paths *only* when using special functions (i.e. FindFirstFileW instead of FindFirstFileA). And these

[fpc-pascal] FpProfiler patch to compile with fpmake

2012-05-12 Thread Michalis Kamburelis
Hi, I'm not sure if anyone is actively watching the Mantis issues for FpProfiler, so I thought I'll mention it here: I submitted a patch to fix the compilation with fpmake from command-line. It's on http://bugs.freepascal.org/view.php?id=21991 Regards, Michalis

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

2012-05-12 Thread 印場 乃亜
Hi, On 2012/05/12, at 18:31, Jürgen Hestermann wrote: Noah Silva schrieb: Thus, the only question would be whether you have to manually convert a UnicodeString to a UTF8String or not. No, that would not help. Under Windows you can access long paths *only* when using special functions

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

2012-05-12 Thread Jorge Aldo G. de F. Junior
does TFileStream use the same code as assign ? you could create a TFileStream instance and then use AssignStream to a regular file type and keep on using plain old read/write... not tested here, but could be worth a try... 2012/5/12 印場 乃亜 shir...@galapagossoftware.com: Hi, On 2012/05/12, at

[fpc-pascal] FPC and (minimal) telnet

2012-05-12 Thread Mark Morgan Lloyd
I'm using the ltelnet unit to good effect in a special-purpose terminal emulator which doesn't merit e.g. Synapse, although since it's not part of the the fcl I'm having to build it specially. I find that if I try to use it to connect to the Hercules mainframe emulator it fails since the

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

2012-05-12 Thread dmitry boyarintsev
Hello Jurgen, I'm assuming that everyone is aware of the solution for this. Every unicode file name still has ANSI-dos name (aka ShortName). You could write a function that would return a short name based on unicode name of a file. And pass the short name to Assign File function. thanks, Dmitry

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

2012-05-12 Thread Reinier Olislagers
On 13-5-2012 5:59, dmitry boyarintsev wrote: I'm assuming that everyone is aware of the solution for this. Every unicode file name still has ANSI-dos name (aka ShortName). You could write a function that would return a short name based on unicode name of a file. And pass the short name to

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

2012-05-12 Thread dmitry boyarintsev
That's the one I'm talking about. thanks, Dmitry On Sun, May 13, 2012 at 12:52 AM, Reinier Olislagers reinierolislag...@gmail.com wrote: On 13-5-2012 5:59, dmitry boyarintsev wrote: I'm assuming that everyone is aware of the solution for this. Every unicode file name still has ANSI-dos name