Permalink
Browse files

Use "/" instead of "\\" as suffix when building URI from current dire…

…ctory.

This fixes test unit Read_ofx_content_53 under mono, which doesn't recognize the backslash at the end of the URI and then constructs the wrong path for the DTD look up when it appends its name as a relative path.
  • Loading branch information...
1 parent eb2ce67 commit abcf4053ece96e0538d893c6a30b480c15cc87dd @bjorg bjorg committed Jan 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sgmlreaderdll/SgmlReader.cs
@@ -465,7 +465,7 @@ private void LazyLoadDtd(Uri baseUri)
}
else
{
- baseUri = new Uri(new Uri(Directory.GetCurrentDirectory() + "\\"), this.m_syslit);
+ baseUri = new Uri(new Uri(Directory.GetCurrentDirectory() + "/"), this.m_syslit);
}
this.m_dtd = SgmlDtd.Parse(baseUri, this.m_docType, this.m_pubid, baseUri.AbsoluteUri, this.m_subset, this.m_proxy, null);
}

0 comments on commit abcf405

Please sign in to comment.