Goal:
- IDE should load/save text files in non UTF-8 encodings.
- The IDE is compiled with UTF-8 LCL, so all internal functions expects
this. 
- It is not sufficient to change synedit, because text is often copied
between synedit and other tools. And there many other IDE tools
reading/editing text files. The central text loading/saving routines
is the TCodeBuffer in the codetools. For performance and
consistency almost all functions use these text file caches. There are
a few exceptions.
- When a TCodeBuffer loads a file it must find out the encoding,
convert it to UTF-8 and on saving convert it back.

Problems:

* How to find out the encoding?
- BOM
- lpi file
- heuristic
- system char set

* What about buggy text files? 


Vasily, your lconv.pas uses libc. AFAIK this unit only exists on a
few platforms. For example not on amd64 nor sparc.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to