Am 25.12.2013 19:35 schrieb "Marcos Douglas" <[email protected]>: > > The only problem on Windows is that you must only pass a string with a very > > clear encoding to a RTL function. > > > > so > > > > assignfile(f,s+s2+s3); > > > > is dangerous if they are not all the same encoding. If there is any > > mismatch, it will be converted down to default encoding. > > Yes but where is the difference between 2.6.2 and trunk, in that case?
If in 2.6.2 your three strings contain text of different encodings then the resulting string might be garbage from the user's POV. In trunk the encoding is part of each string and if they differ then each strings will be converted to the default string encoding (defined by a global variable inside unit System) and thus the string might still be valid. Regards, Sven
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
