You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/11/24 06:29:45 UTC
DO NOT REPLY [Bug 14804] New: -
Current working directory is not corrrect for executables launched from the shell
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14804>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14804
Current working directory is not corrrect for executables launched from the shell
Summary: Current working directory is not corrrect for
executables launched from the shell
Product: Xerces-C++
Version: 2.1.0
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: Normal
Priority: Other
Component: Utilities
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: benoit@mutablerealms.com
The current working directory under MacOS X is obtained using the File Manager
API which returns the location of the excutable, not the current working
directory. Therefore the following doesn't work (the xml file to parse isn't found):
$ bin/DOMCount samples/data/personal.xml
only the following works:
$ ./DOMCount ../samples/data/personal.xml
Shouldn't the XMLParsePathToFSRef method use getcwd() instead to determine the
current working directory? This would work as expected for applications launched
from a shell.
This might break application lanched from the finder however since I think
getcwd returns '/' in this case.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org