Checking "Interfaces" unit on compiling step.
Original Reporter info from Mantis: tr_escape
-
Reporter name: tr escape
Original Reporter info from Mantis: tr_escape
- Reporter name: tr escape
Description:
There is a problem on Lazarus 1.6.2 as mentioned that forum points:
http://forum.lazarus.freepascal.org/index.php/topic,34807.msg229138.html#msg229138
http://forum.lazarus.freepascal.org/index.php/topic,34807.msg229264.html#msg229264
http://forum.lazarus.freepascal.org/index.php/topic,34807.msg229278.html#msg229278
http://forum.lazarus.freepascal.org/index.php/topic,34807.msg229366.html#msg229366
http://forum.lazarus.freepascal.org/index.php/topic,34807.msg229427.html#msg229427
If need summarize of the problem ; I installed the 1.6.2 version Lazarus over the 1.6.0 and when I start to compile any project Lazarus shows a message about missing the "Interfaces" unit of in the main .lpr file.
NOTE: Version 1.6.0 working without show missing message.
I tried to solve my problem with change the sourcefilemanager.pas and it is worked. In forum member Bart gave me a hint about localize and I changed my ideprocs.pp and rollback my sourcefilemanager.pas.
So I prepared an example software as mentioned Bart.
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
Memo1.Lines.Add('WideUpperCase(''interfaces''): '+WideUpperCase('interfaces'));
Memo1.Lines.Add('WideLowerCase(''INTERFACES''): '+WideLowerCase('INTERFACES'));
Memo1.Lines.Add('WideUpperCase(Utf8ToUtf16(''interfaces'')): '+WideUpperCase(Utf8ToUtf16('interfaces')));
Memo1.Lines.Add('WideLowerCase(Utf8ToUtf16(''INTERFACES'')): '+WideLowerCase(Utf8ToUtf16('INTERFACES')));
Memo1.Lines.Add('WideCompareText:'+
IntToStr( WideCompareText('interfaces','INTERFACES') )
);
end;
The results here:
Memo1
WideUpperCase('interfaces'): İNTERFACES
WideLowerCase('INTERFACES'): ınterfaces
WideUpperCase(Utf8ToUtf16('interfaces')): İNTERFACES
WideLowerCase(Utf8ToUtf16('INTERFACES')): ınterfaces
WideCompareText:1
Mantis conversion info:
- Mantis ID: 30967
- OS: Linux
- OS Build: Mint 17 Qiana
- Platform: i386
- Version: 1.6.2