chiark / gitweb /
set content-type charset and LC_CTYPE to UTF-8
[ypp-sc-tools.web-live.git] / yarrg / commod-update-receiver
index 6fac8a27b688e659682d8d8625e2e0d4e682ace7..f11442854c0f31bf4029600ac5a9b705fae0db3a 100755 (executable)
 # are used without permission.  This program is not endorsed or
 # sponsored by Three Rings.
 
-# All calls contain:
-#  clientname                  "ypp-sc-tools"
-#  clientversion               2.1-g2e06a26  [from git-describe --tags HEAD]
-#  clientfixes                 "lastpage"  [space separated list]
-#
-# Timestamp requests contain:
-#  requesttimestamp
-#
-# Uploads contain:
-#  ocean                       canonical mixed case
-#  island                      canonical mixed case
-#  data filename=deduped.tsv.gz        output of yarrg --tsv
-
-
 use strict (qw(vars));
 use POSIX;
 use MIME::Entity;
@@ -49,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 $!;
 
@@ -217,7 +203,7 @@ M->error and fail("write sendmail failed! ($!)");
 $?=0; close M; $? and fail("sendmail failed code $?");
 
 print header(-type=>'text/plain', -charset=>'us-ascii'),
-      "OK\n"
+      "OK\nThank you for your submission to YARRG.\n"
     or die $!;
 
 addlog("accepted $o{'clientspec'}");