User: sits    
  Date: 06/05/18 17:40:16

  Modified:    bin      codestriker.pl.base
               lib      Codestriker.pm
               lib/Codestriker/Action DownloadTopic.pm MetricsReport.pm
                        SubmitNewTopic.pm
               lib/Codestriker/FileParser Parser.pm
               lib/Codestriker/Http Response.pm
               template/en/default createtopic.html.tmpl
  Log:
  Initial steps for i18n'ing Codestriker.  Can now add Russian/Japanese
  text to the create topic fields, and add/view unicode comments.  Still
  some issues:
     * Topic text can't handle utf-8 insertion into the database for
     some reason.
     * Javascript tooltips need to be utf8 smart.
     * Emails sent also need to be utf8 smart.
  
  Once this work is done, we might discover Perl 5.8 is required, as the
  unicdoe support in 5.6 is very limited, but we'll see.
  
  
  
  Index: codestriker.pl.base
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/bin/codestriker.pl.base,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- codestriker.pl.base       2 Jun 2005 11:30:58 -0000       1.19
  +++ codestriker.pl.base       19 May 2006 00:40:15 -0000      1.20
  @@ -80,6 +80,9 @@
       $ENV{'PATH'} = '';
   }
   
  +# Make sure the STDOUT encoding is set to UTF8.
  +binmode STDOUT, ':utf8';
  +
   # Prototypes of subroutines used in this module.
   sub main();
   
  
  
  
  
  
  Index: Codestriker.pm
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker.pm,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- Codestriker.pm    20 Apr 2006 23:51:33 -0000      1.84
  +++ Codestriker.pm    19 May 2006 00:40:15 -0000      1.85
  @@ -28,7 +28,7 @@
              );
   
   # Version of Codestriker.
  -$Codestriker::VERSION = "1.9.2-alpha-5";
  +$Codestriker::VERSION = "1.9.2-alpha-6";
   
   # Default title to display on each Codestriker screen.
   $Codestriker::title = "Codestriker $Codestriker::VERSION";
  
  
  
  
  
  Index: DownloadTopic.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Action/DownloadTopic.pm,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DownloadTopic.pm  7 Jun 2005 22:51:46 -0000       1.12
  +++ DownloadTopic.pm  19 May 2006 00:40:15 -0000      1.13
  @@ -31,7 +31,7 @@
       # Dump the raw topic data as text/plain.
       print $query->header(-type=>'text/plain',
                         -content_type=>'text/plain',
  -                      -charset=>"ISO-8859-1",
  +                      -charset=>"UTF-8",
                         -attachment=>"topic${topicid}.txt",
                         -filename=>"topic${topicid}.txt",
                         -pragma=>"Cache",
  
  
  
  
  
  Index: MetricsReport.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Action/MetricsReport.pm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MetricsReport.pm  7 Jun 2005 22:51:46 -0000       1.7
  +++ MetricsReport.pm  19 May 2006 00:40:15 -0000      1.8
  @@ -61,7 +61,7 @@
   
       my $query = $http_response->get_query();
       print $query->header(-type=>'text/plain',
  -                      -charset=>"ISO-8859-1",
  +                      -charset=>"UTF-8",
                         -attachment=>"metrics.csv",
                         -filename=>"metrics.csv");
   
  
  
  
  
  
  Index: SubmitNewTopic.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/Action/SubmitNewTopic.pm,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- SubmitNewTopic.pm 16 Jan 2006 21:22:58 -0000      1.24
  +++ SubmitNewTopic.pm 19 May 2006 00:40:15 -0000      1.25
  @@ -186,6 +186,8 @@
            $temp_topic_fh = tempfile();
            $temp_error_fh = tempfile();
        }
  +#    binmode $temp_topic_fh, ':utf8';
  +#    binmode $temp_error_fh, ':utf8';
        
        my $rc = $repository->getDiff($start_tag, $end_tag, $module,
                                      $temp_topic_fh, $temp_error_fh,
  
  
  
  
  
  Index: Parser.pm
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/lib/Codestriker/FileParser/Parser.pm,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Parser.pm 19 Jun 2005 10:56:07 -0000      1.19
  +++ Parser.pm 19 May 2006 00:40:15 -0000      1.20
  @@ -49,6 +49,7 @@
       else {
        $tmpfh = tempfile();
       }
  +#    binmode $tmpfh, ':utf8';
       
       if (!$tmpfh) {
        die "Unable to create temporary parse file: $!";
  
  
  
  
  
  Index: Response.pm
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Http/Response.pm,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- Response.pm       16 Feb 2006 09:00:02 -0000      1.36
  +++ Response.pm       19 May 2006 00:40:15 -0000      1.37
  @@ -173,12 +173,12 @@
        if ($cache) {
            print $query->header(-cookie=>$cookie_obj,
                                 -content_encoding=>'x-gzip',
  -                              -charset=>"ISO-8859-1",
  +                              -charset=>"UTF-8",
                                 -vary=>'Accept-Encoding');
        } else {
            print $query->header(-cookie=>$cookie_obj,
                                 -expires=>'+1d',
  -                              -charset=>"ISO-8859-1",
  +                              -charset=>"UTF-8",
                                 -cache_control=>'no-store',
                                 -pragma=>'no-cache',
                                 -content_encoding=>'x-gzip',
  @@ -195,11 +195,11 @@
       } else {
        if ($cache) {
            print $query->header(-cookie=>$cookie_obj,
  -                                      -charset=>"ISO-8859-1");
  +                                      -charset=>"UTF-8");
        } else {
            print $query->header(-cookie=>$cookie_obj,
                                 -expires=>'+1d',
  -                              -charset=>"ISO-8859-1",
  +                              -charset=>"UTF-8",
                                 -cache_control=>'no-store',
                                 -pragma=>'no-cache');
        }
  
  
  
  
  
  Index: createtopic.html.tmpl
  ===================================================================
  RCS file: 
/cvsroot/codestriker/codestriker/template/en/default/createtopic.html.tmpl,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- createtopic.html.tmpl     19 Jun 2005 11:26:52 -0000      1.45
  +++ createtopic.html.tmpl     19 May 2006 00:40:16 -0000      1.46
  @@ -24,7 +24,7 @@
   <p>
   [% END %]
   
  -<FORM METHOD="post" ENCTYPE="multipart/form-data">
  +<FORM METHOD="post" ENCTYPE="multipart/form-data" ACCEPT-CHARSET="UTF-8">
   <INPUT TYPE="hidden" NAME="action" VALUE="submit_new_topic" />
   <INPUT TYPE="hidden" NAME="obsoletes" VALUE="[% obsoletes %]" />
   
  
  
  


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to