chiark / gitweb /
Use parse_info_serverside_ocean in commod-update-receiver
[ypp-sc-tools.db-test.git] / yarrg / commod-update-receiver
index 3ae1a6208a0fb01eaceaf3c3eeb291842b34ebe1..d01b6de1753c3cbfac8b7751d0266c5af36a0116 100755 (executable)
@@ -35,7 +35,7 @@ $CGI::POST_MAX= 3*1024*1024;
 
 use CGI qw/:standard -private_tempfiles/;
 
-setlocale(LC_CTYPE, "en_GB.UTF-8");
+set_ctype_utf8();
 
 our $now= time;  defined $now or die $!;
 
@@ -49,7 +49,7 @@ sub fail ($) {
     print header(-status=>'400 Bad commodity update',
                 -type=>'text/plain',
                 -charset=>'us-ascii');
-    print "Error: $msg\n";
+    print "\nError: $msg\n";
     exit 0;
 }
 
@@ -110,6 +110,8 @@ $o{'island'}= must_param('island', $re_any);
 my $arches= $oceans{$o{'ocean'}};
 fail("unknown ocean") unless $arches;
 
+parse_info_serverside_ocean($o{'ocean'});
+
 my $island_found= 0;
 foreach my $islands (values %$arches) {
     my $sources= $islands->{$o{'island'}};