sipb-www
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* In the cgi edit path, reload the index file before rendering. A bug
[ikiwiki.git]
/
IkiWiki
/
Setup.pm
diff --git
a/IkiWiki/Setup.pm
b/IkiWiki/Setup.pm
index 9f210dec896e136c8f9536348fa07626fdda2c9d..2d6e1d1cffe082315e3f64493c570e86c7d39649 100644
(file)
--- a/
IkiWiki/Setup.pm
+++ b/
IkiWiki/Setup.pm
@@
-3,13
+3,16
@@
use warnings;
use strict;
use IkiWiki;
use warnings;
use strict;
use IkiWiki;
+use open qw{:utf8 :std};
package IkiWiki;
sub setup () { # {{{
my $setup=possibly_foolish_untaint($config{setup});
delete $config{setup};
package IkiWiki;
sub setup () { # {{{
my $setup=possibly_foolish_untaint($config{setup});
delete $config{setup};
- open (IN, $setup) || error("read $setup: $!\n");
+ #translators: The first parameter is a filename, and the second
+ #translators: is a (probably not translated) error message.
+ open (IN, $setup) || error(sprintf(gettext("cannot read %s: %s"), $setup, $!));
my $code;
{
local $/=undef;
my $code;
{
local $/=undef;