[Slashdotjp-dev 1126] [653] * Enable to specify encoding for prog2file

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 5月 16日 (金) 16:24:45 JST


Revision: 653
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=653
Author:   tach
Date:     2008-05-16 16:24:45 +0900 (Fri, 16 May 2008)

Log Message:
-----------
 * Enable to specify encoding for prog2file
   - use 'encoding' to option

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Utility/System/System.pm
    slashjp/branches/2.5.0.192/debian/changelog


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Utility/System/System.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Utility/System/System.pm	2008-05-16 06:44:00 UTC (rev 652)
+++ slashjp/branches/2.5.0.192/Slash/Utility/System/System.pm	2008-05-16 07:24:45 UTC (rev 653)
@@ -489,6 +489,7 @@
 			if (!open $fh, "> $filename\0") {
 				$err_str .= " could not write to '$filename': '$!'";
 			} else {
+				binmode $fh, ":encoding($options->{encoding})" if ($options->{encoding});
 				print $fh $data;
 				close $fh;
 				$success = 1;

Modified: slashjp/branches/2.5.0.192/debian/changelog
===================================================================
--- slashjp/branches/2.5.0.192/debian/changelog	2008-05-16 06:44:00 UTC (rev 652)
+++ slashjp/branches/2.5.0.192/debian/changelog	2008-05-16 07:24:45 UTC (rev 653)
@@ -13,8 +13,10 @@
   * Do not show footer when show foaf at plugins/Zoo/zoo.pl
   * Fix: Use of uninitialized value in concatenation (.) or string at
     /usr/lib/perl5/Slash/DB/MySQL.pm line 10184
+  * Enable to specify encoding for prog2file
+    - use 'encoding' to option
 
- -- Taku YASUI <tach****@osdn*****>  Fri, 16 May 2008 06:43:17 +0000
+ -- Taku YASUI <tach****@osdn*****>  Fri, 16 May 2008 07:23:02 +0000
 
 slash (2.5.0.192-12) unstable; urgency=low
 


Slashdotjp-dev メーリングリストの案内
Back to archive index