[Mageia-dev] [soft-commits] [6435] Added a first log viewer module.

Angelo Naselli anaselli at linux.it
Mon Nov 12 11:12:43 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 12/11/2012 10:06, Guillaume Rousse ha scritto:
> I forgot this one...
> 
> Le 11/11/2012 19:13, root at mageia.org a écrit :
>> +## Append a custom string to log view adding date +sub logText
>> { +    my ($st) = @_; +    my $string = chomp_(`LC_ALL=C date
>> '+%Y %b %d %T'`) . " " . $st . "\n"; +    # `` return non utf8
>> and concat of non utf8 & utf8 is non utf8: +
>> c::set_tagged_utf8($string); + +    # log given text +
>> $logView->appendLines($string); +}
> It is especially ugly to call external date binary, whereas perl
> has everything needed as builtin functions for this. See "time
> related functions" in perlfunc(1), and POSIX::strftime in
> POSIX(3pm) if you need a simple formation function.
Ok so you're offering yourself to rewrite all without leaving
any old code in new implementation :D

Anyway I understand what you mean, and i agree i will fix it asap.

Angelo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCgy5sACgkQqEs9DA4DquDZ6ACeKl3WUjETSj6tFCXhTC9xox7W
BiQAn1sDo7GNTIdl7IgQu3q3UFrd/M3Y
=NCMa
-----END PGP SIGNATURE-----


More information about the Mageia-dev mailing list