[Koha-patches] [PATCH] Amending SetUNIMARCencoding Adding SetUTF8Flag

Joe Atzberger joe.atzberger at liblime.com
Thu Jul 23 23:59:19 CEST 2009


This is another case where test scripts will prove particularly valuable.
Encoding problems can seem invisible, so setting test cases would firmly
establish why the code is needed as is.

+        $string = POSIX::strftime( "%Y%m%d", localtime );
> +        $string =~ s/\-//g;
> +        $string = sprintf( "%-*s", $subflength-1, $string );
>

Where are the hyphens coming from that you need to remove them with regexp?
I don't see any possibility of them existing in POSIX::strftime( "%Y%m%d",
localtime ).

-- 
Joe Atzberger
LibLime - Open Source Library Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090723/030663b6/attachment-0002.htm>


More information about the Koha-patches mailing list