summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 066b6e8)
raw | patch | inline | side by side (parent: 066b6e8)
author | ishmal <ishmal@users.sourceforge.net> | |
Sat, 22 Apr 2006 23:13:25 +0000 (23:13 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Sat, 22 Apr 2006 23:13:25 +0000 (23:13 +0000) |
src/dom/io/uristream.cpp | patch | blob | history |
index a12fe952294c24842dfdea0c7c37fcae2673de4a..1cc540bd5d7b54ad49a53cd9c1989500c57a175d 100644 (file)
--- a/src/dom/io/uristream.cpp
+++ b/src/dom/io/uristream.cpp
//get information from uri
scheme = uri.getScheme();
- //printf("in scheme:'%d'\n", scheme);
- DOMString path = uri.getPath();
- //printf("in path:'%s'\n", path.c_str());
-
switch (scheme)
{
case URI::SCHEME_FILE:
{
- inf = fopen(path.c_str(), "rb");
+ DOMString npath = uri.getNativePath();
+ inf = fopen(npath.c_str(), "rb");
if (!inf)
{
DOMString err = "UriInputStream cannot open file ";
- err.append(path);
+ err.append(npath);
throw StreamException(err);
}
break;
case URI::SCHEME_DATA:
{
+ DOMString path = uri.getPath();
data = (unsigned char *) uri.getPath().c_str();
//printf("in data:'%s'\n", data);
dataPos = 0;
case URI::SCHEME_FILE:
{
- cpath = (char *) uri.getPath().c_str();
+ cpath = (char *) uri.getNativePath().c_str();
//printf("out path:'%s'\n", cpath);
outf = fopen(cpath, "wb");
if (!outf)