Closed GoogleCodeExporter closed 9 years ago
这个是用于路径中包含空格导致的,建议词库路径中不要包��
�空格。
另外,这个bug fix在Svn代码库中。
Original comment by qieqie.wang
on 17 Mar 2008 at 3:14
Original comment by qieqie.wang
on 17 Mar 2008 at 3:17
Two different file path formats for MS Windows and UNIX:
MS Windows - file:/C:/Program Files/xxxx/xxx.jar!xxxx.properties
UNIX: file:/usr/local/xxxx/xxx.jar!xxxx.properties
If you only trim off "file:" protocol, it works for UNIX only:
MS Windows - /C:/Program Files/xxxx/xxx.jar!xxxx.properties <-- Invalid
UNIX: /usr/local/xxxx/xxx.jar!xxxx.properties <-- correct
Please add the following fix:
PaodingMaker.java Line 238:
path = path.replaceAll("%20", " ").replaceAll("\\\\", "/");
jarIndex = path.indexOf(".jar!"); // update jarIndex position
int protocalIndex = path.indexOf(":");
String jarPath = path.substring(protocalIndex + ":".length(), jarIndex
+ ".jar".length()); // For UNIX - file:/usr/local/xxxx/xxx.jar!xxxx.properties
if (jarPath.indexOf(":") != -1) // For MS Windows - file:/C:/Programe
Files/xxxx/xxx.jar!xxxx.properties
jarPath = path.substring(protocalIndex + ":/".length(), jarIndex
+ ".jar".length());
Original comment by tommych...@gmail.com
on 14 Apr 2008 at 8:27
Original issue reported on code.google.com by
aiwuy...@gmail.com
on 11 Dec 2007 at 6:41