o2on svn commit
o2on-****@lists*****
2008年 4月 22日 (火) 12:38:02 JST
Revision: 78 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=78 Author: electrolysis Date: 2008-04-22 12:38:02 +0900 (Tue, 22 Apr 2008) Log Message: ----------- FIX: 「取得失敗」時にエンコーディングが未指定 Modified Paths: -------------- branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp Modified: branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp =================================================================== --- branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp 2008-04-21 13:31:04 UTC (rev 77) +++ branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp 2008-04-22 03:38:02 UTC (rev 78) @@ -699,8 +699,10 @@ O2DatPath datpath; string dat; - if (!Load(hash, 0, dat, datpath)) + if (!Load(hash, 0, dat, datpath)) { + encoding = "shift_jis"; return false; + } if (datpath.is_be()) sjis_or_euc(dat, encoding);