OSDN Git Service

カーネルのターゲット非依存部1.7.0およびCFGをマージ
[toppersasp4lpc/asp.git] / asp / cfg / toppers / gettext.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 825a470..b2133df
@@ -2,7 +2,7 @@
  *  TOPPERS Software
  *      Toyohashi Open Platform for Embedded Real-Time Systems
  *
- *  Copyright (C) 2007-2008 by TAKAGI Nobuhisa
+ *  Copyright (C) 2007-2011 by TAKAGI Nobuhisa
  * 
  *  上記著作権者は,以下の(1)〜(4)の条件を満たす場合に限り,本ソフトウェ
  *  ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
@@ -138,9 +138,13 @@ namespace toppers
     }
     std::string lang( env );
 
-    fs::path cfg_dir( dir, fs::native );
-    fs::path po_file( cfg_dir/fs::path( lang + ".po", fs::native ) );
-    std::ifstream ifs( po_file.native_file_string().c_str() );
+//    fs::path cfg_dir( dir, fs::native );
+    fs::path cfg_dir( dir );  // filesystem3対応
+//    fs::path po_file( cfg_dir/fs::path( lang + ".po", fs::native ) );
+    fs::path po_file( cfg_dir/fs::path( lang + ".po" ) );  // filesystem3対応
+
+//    std::ifstream ifs( po_file.native_file_string().c_str() );
+    std::ifstream ifs( po_file.string().c_str() );  // filesystem3対応
     std::string msgid;
     std::string msgstr;