Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-04-29 Thread Denis Kozlov

On 29/04/2016 18:29, Mattias Gaertner wrote:

Debian ships its own version of Lazarus .deb packages.
They are split into many small packages.
We need to create a debian bug report for the missing .lpk files.

The sourceforge site of Lazarus itself contains a single Lazarus
package, which does contain the .lpk files.
It also contains a package for fpc and the fpc sources.
You might want to install these three packages instead.

Mattias


Just tried again to confirm. Ubuntu Xenial (16.04) provided package of 
Lazarus 1.6 is broken, many files are missing after the installation. I 
checked both "history.log" and "term.log" from /var/log/apt/, no errors.


The bit that confused me initially was that when I first tried to 
install "lazarus_1.6-0_amd64.deb" downloaded from sourceforge.net it 
actually installed the Ubuntu provided package instead.


I haven't tested any Debian provided packages, in case they differ from 
Ubuntu.


Denis

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-04-29 Thread Denis Kozlov

On 29/04/2016 18:29, Mattias Gaertner wrote:

Debian ships its own version of Lazarus .deb packages.
They are split into many small packages.
We need to create a debian bug report for the missing .lpk files.

The sourceforge site of Lazarus itself contains a single Lazarus
package, which does contain the .lpk files.
It also contains a package for fpc and the fpc sources.
You might want to install these three packages instead.

Mattias


I've tried both, Ubuntu/Debian packaged and the official build from 
sourceforge.net. Both installations resulted in missing Lazarus files. I 
normally install from SVN which never has problems, but this time I 
tried the *.deb files.


I've inspected the packages manually and they do contain the missing 
files, but somehow they do not get extracted. I'll instigate it further, 
maybe there is some kind of incompatibility with the package manager on 
Ubuntu 16.


Denis

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-04-29 Thread Mattias Gaertner
On Fri, 29 Apr 2016 17:20:54 +0100
Denis Kozlov  wrote:

> Nobody else noticed randomly missing files from Lazarus 1.6 distribution
> for Linux?

Debian ships its own version of Lazarus .deb packages.
They are split into many small packages.
We need to create a debian bug report for the missing .lpk files.

The sourceforge site of Lazarus itself contains a single Lazarus
package, which does contain the .lpk files.
It also contains a package for fpc and the fpc sources.
You might want to install these three packages instead.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-04-29 Thread Denis Kozlov
Nobody else noticed randomly missing files from Lazarus 1.6 distribution
for Linux?


On 25 April 2016 at 12:43, Denis Kozlov  wrote:

> Why many components have missing *.lpk files in Lazarus 1.6 DEB installer?
> Is this deliberate or a packaging problem?
>
> Tried installing using `lazarus_1.6-0_amd64.deb` and via `apt install
> lazarus` on Ubuntu 16. Tree structure of components in DEB is quite
> different to Windows or SVN structure.
>
> For example, it is missing:
> \components\anchordocking\anchordocking.lpk
> \components\anchordocking\design\anchordockingdsgn.lpk
> \components\customdrawn\customdrawn.lpk
> \components\education\educationlaz.lpk
> (and hundreds other files)
>
> Denis
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor tabs and opening new files

2016-04-29 Thread Bart
On 4/29/16, Graeme Geldenhuys  wrote:

> I'm using Lazarus v1.7 (quite recent) compile with LCL-GTK2. Is there an
> option in the IDE to open a new file (eg: 'File -> Open' and a file from
> any directory) always as the last tab in the editor window?

That would indeed be a nice option.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Editor tabs and opening new files

2016-04-29 Thread Graeme Geldenhuys
Hello,

I'm using Lazarus v1.7 (quite recent) compile with LCL-GTK2. Is there an
option in the IDE to open a new file (eg: 'File -> Open' and a file from
any directory) always as the last tab in the editor window?

The current behaviour is to open the new file just after the current
tab. I don't want that if possible. I use tab ordering extensively, as
I work with lots of open files.


Regards,
  Graeme


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with non-ascii chars fpc-3.0.0 vs fpc-3.1.1 under Windows

2016-04-29 Thread zeljko

On 04/28/2016 02:26 PM, Bart wrote:

Example with
set zeljko=äëï
Result of StringCodePage in sqaure brackets:

GetEnvironmentVariableUtf8: zeljko = $C3 $A4 $C3 $AB $C3 $AF [0]
GetEnvironmentVariable with UnicodeString: zeljko = $00E4 $00EB $00EF [1200]
UTF16ToUTF8 on result of previous line: zeljko = $C3 $A4 $C3 $AB $C3 $AF [65001]
GetAppConfigDirUtf8:  [65001]

As a workaround you may try to use the Unicode variant of
GetEnvironmentVariable and convert it to Utf8 with UTF16ToUtf8().
The resulting string (on my system) then has stringCodePage = CP_UTF8 again.


Thanks, that workaround works, but with 2.6.4 have another type of problem:
1.Home dir is C:\Users\Željko
2.DirectoryExistsUTF8, any file inside $HOME FileExistsUTF8 and other 
file routines from LazFileUtils works like a charm.
3.IniFiles - TMemIniFile uses UpdateFile, and of course eg. 
C:\Users\Željko\myinifile.ini fails to update because UpdateFile 
inifiles uses ForceDirectories() ...

4.I said ok, let's create it with:
 a) UTF8ToSys(AFileName) - does not work
 b) UTF8ToConsole(AFileName) - does not work
 c) UTF8ToAnsi(AFIleName) - does not work
 d) LConvEncoding.UTF8ToCp1250(AFIleName) WORKS

So, have I missed something about UTF8ToSys() and others in case of 
fpc-2.6.4 ?


NOTE: I'm talking about fpc-2.6.4 ! fpc-3.0.0 works correct in this case

zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus