Changeset 20811


Ignore:
Timestamp:
2011/04/05 10:50:34 (13 years ago)
Author:
AMUAMU
Message:

#1219 (MySQL環境において商品登録CSVの先頭文字情報欠落が起こる)
#1241 (ロケール設定が環境に適していないと日本語処理に問題が生じる)

に関する修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/SC_Initial.php

    r20782 r20811  
    140140 
    141141        //ロケールを明示的に設定 
    142         setlocale(LC_ALL, LOCALE); 
     142        $res = setlocale(LC_ALL, LOCALE); 
     143        if($res === FALSE) { 
     144            // TODO: Windows上のロケール設定が正常に働かない場合があることに暫定的に対応 
     145            // ''を指定するとApache実行環境の環境変数が使われる 
     146            // See also: http://php.net/manual/ja/function.setlocale.php 
     147            setlocale(LC_ALL, ''); 
     148        } 
    143149    } 
    144150 
Note: See TracChangeset for help on using the changeset viewer.