Birinder, I'm puzzled if you can make a round-trip through XMLCreateFullPathFromFSSpec/XMLParsePathToFSSpec, unless perhaps our final decode back into utf-8 isn't providing the proper form of decomposed unicode desired by the file system.
Please put a breakpoint at XMLMacPosixFile::open (note that there are two versions of this routine) in order to verify that your path looks good, and that the file open is (or isn't) failing at that point. If you are on the root volume, on Mac OS X, your pathname will have no volume component. -jdb On 8/27/03 8:38 AM, "Birinder Singh" <[EMAIL PROTECTED]> wrote: > Hi James > > I mentioned the OS in my subject OS X > FSMakeFSSpec doesnt return an error code (returns 0) and i think that fsspec > is hence valid or is there any other way to see this > XMLCreateFullPathFromFSSpec converts the passed string to unicode > If i pass the path returned by XMLCreateFullPathFromFSSpec to > XMLParsePathToFSSpec it succeeds and i think that hence the spec is valid > > One more point is that the string (unicode) that we pass to the SAX Parser > does not contain the volume name > does this have to do with its not finding the path > > thanks > birinder > > -----Original Message----- > From: James Berry [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 27, 2003 8:45 PM > To: Xerces C Dev > Cc: Birinder Singh > Subject: Re: Japanese file Names cant be resolved by SAX on Mac OS X > > > Birinder, > > Here are some answers that would be helpful either to you or to me: > > - Are you running on Mac OS X or Mac OS 9? > - Does your call to FSMakeFSSpec return an error code? > - Does your call to FSMakeFSSpec return to you a valid FSSpec? > - What is the path that is returned by XMLCreateFullPathFromFSSpec? > - If you pass the path returned by XMLCreateFullPathFromFSSpec (assuming > it's valid) into XMLParsePathToFSSpec, does this routine succeed, and is the > FSSpec it creates valid? > > James > > > On 8/27/03 7:33 AM, "Birinder Singh" <[EMAIL PROTECTED]> wrote: > >> Hi all >> >> I am passing a file path having some japanese named folders in the path to >> the SAX Parser to parse the file >> I do the following stuff on Mac >> >> > ---------------------------------------------------------------------------- >> -------------- >> FSMakeFSSpec(0,0,filePath,&fsspec); >> XMLCh *newPathPtr = XMLCreateFullPathFromFSSpec(fsspec); >> > ---------------------------------------------------------------------------- >> -------------- >> >> Now i pass the newPathPtr to the SAX Parser and it cant open the specified >> file >> I cant figure out where i am wrong in doing so >> Can anyone help me please >> >> regards >> birinder >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
