Re: [Lazarus] OpenDocument on Unix: single quotes versus double quotes?

2012-04-07 Thread Reinier Olislagers
On 6-4-2012 15:34, Reinier Olislagers wrote: Looking at the lclintf.OpenDocument function on Unix: if (APath'') and (APath[1]'') then APath:=QuotedStr(APath); Am I being dense again or is this an error in the code? The first character of APath is checked for (double quote). if it

[Lazarus] Unicode on Windows

2012-04-07 Thread Marcos Douglas
Hi, Using FPC 2.6.1 and Laz trunk on Windows, there is a better way to not to do such codes below? Examples 1- I'm on the LCL and I have an Edit (edtFileName): var lFileName: string; lStrings: TStrings; begin lStrings := TStrings.Create; try lFileName := Utf8ToSys(edtFileName.Text);