On Wed, Apr 25, 2012 at 11:23 AM, Mattias Gaertner < [email protected]> wrote:
> From where are you pasting? > Via drag and drop or via clipboard? > SynEdit uses a different font than TFilenameEdit and treats some > characters special. > Hi ik, cobines, Sven, Mattias and DoDi I copied it through clipboard. The original cyrillic string came from the related issue: 19483: Lazarus can't save to a directory which has unicode characters in its name http://bugs.freepascal.org/view.php?id=19483 I copied the cyrillic part and created a file: C:\SW\Лейбл1.txt I gave the hardcoded name to CopyFile function call and it failed. Then I created a test app with FileNameEdit, run it, selected the same file name and it worked. No, there is no {$codepage ..} directive. Could someone please test if it can be reproduced? It may be somehow caused by my locale, who knows. The case happens on Windows and the text looks correct in editor, although CopyFile fails. There was another case on Linux where the exact same text, read from the same file, looked very different in Lazarus source editor than it looked anywhere else. I found the forum thread: http://lazarus.freepascal.org/index.php/topic,15137.msg81342.html#msg81342 It was also cyrillic text and Lazarus showed it wrong. It was confirmed by one person, ludob. Could someone explain what happened there? It can't be my system's default encoding because it showed correctly in other editors. The char encoding stuff is so messy I still don't understand it well. I will not work on it more now because I am busy with both a day-job and school. Besides, I have a course about Haskell language. I think it should be renamed to Brainfuck language. Unfortunately there already is a language called Brainfuck. It must be renamed to something else. http://en.wikipedia.org/wiki/Haskell_%28programming_language%29 http://en.wikipedia.org/wiki/Brainfuck Regards, Juha
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
