Changes between Initial Version and Version 5 of Ticket #218


Ignore:
Timestamp:
2008/03/14 13:08:36 (14 years ago)
Author:
Yammy
Comment:

EC-CUBE 2.1.1Betaに取り込まれ済

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #218

    • Property Owner changed from somebody to Yammy
    • Property Status changed from new to closed
    • Property Version changed from 2.0系(正式版) to 2.1.1(ベータ版)
    • Property Resolution changed from to 修正済
  • Ticket #218 – Description

    initial v5  
    1 http://webml.ec-cube.net/comu-ml/200712/msg00001.html 
    2  
    3 == 原因 == 
    4 PHP5 から fgetcsv() 関数がロケールに依存するようになったため. 
    5  
    6 == 解決案 == 
    7 以下のパッチを適用 
    8  
    9 {{{ 
    10 LC_Page_Admin_Products_UploadCSV.php 
    11 --- LC_Page_Admin_Products_UploadCSV.php.org    2007-12-26 
    12 17:54:15.000000000 +0900 
    13 +++ LC_Page_Admin_Products_UploadCSV.php        2007-12-26 
    14 17:53:34.000000000 +0900 
    15 @@ -122,6 +122,11 @@ 
    16                  echo "■ CSV登録進捗状況 <br/><br/>\n"; 
    17  
    18                  while(!feof($fp) && !$err) { 
    19 +                    if (CHAR_CODE == "UTF-8") { 
    20 +                      setlocale(LC_ALL,'ja_JP.UTF-8'); 
    21 +                    } elseif (CHAR_CODE == "EUC-JP") { 
    22 +                      setlocale(LC_ALL,'ja_JP.eucJP'); 
    23 +                    } 
    24                      $arrCSV = fgetcsv($fp, CSV_LINE_MAX); 
    25  
    26                      // 行カウント 
    27 }}} 
     1EC-CUBE 2.1.1Betaに取り込まれ済