bugGNUstep - Bugs: bug #26534, Cannot save files with Ink.app on...

Group
 
 

bug #26534: Cannot save files with Ink.app on Windows

Submitter:  Adam Fedor <fedor>
Submitted:  Mon 11 May 2009 09:47:34 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 16 May 2009 07:17:27 PM UTC, comment #2: 

This turned out to be a problem with Ink (well NSDocument based apps) using a file URL, and the NSURL code in base not dealing specially with windows paths.

If you created a URL of the form file://localhost/c:\...  then [NSURL-path] was returning /c:\... which is obviously not the right value on windows.

I changed NSURL so that, if on windows, the result of -path looks like a windows drive specifier preceeded by a slash, it returns the path without the leading slash.
This fixes the problem in Ink.app on my system.

Richard Frith-Macdonald <CaS>
Group Member
Fri 15 May 2009 10:12:47 PM UTC, comment #1: 

I get a similar error.

[New thread 3188.0x990]
warning: 2009-05-16 00:07:13.376 Ink[3188] File NSData.m: 1411. In -[NSData writ
eToFile:options:error:] Open (/G:/qqq.rtfa00292) failed - La sintassi del nome d
el file, della directory o del volume Þ incorretta.

I guess "/G:/" is wrong: it should be either /g/ or G:\

Riccardo Mottola <rmottola>
Group Member
Mon 11 May 2009 09:47:34 PM UTC, original submission:  

In the latest release (base 0.19.1, gui 0.17.0), Ink cannot save files on Windows.  I get a blank Alert panel and the warning: "In -[NSData writeToFile:options:error:] Open (/H:/Source/test3.rtfa01496) failed - ...". See attached screen shot.


Adam Fedor <fedor>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #18125:  Picture 4.png added by fedor (261KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by rmottola (Posted a comment)
  • -email is unavailable- added by fedor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-05-16 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2009-05-11 fedor Attached File- Added Picture 4.png, #18125

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code