bugKawa - Bugs: bug #49475, make-temporary-file does not...

 
 

bug #49475: make-temporary-file does not interpret ~d properly

Submitter:  Sudarshan S Chawathe <chaw>
Submitted:  Sat 29 Oct 2016 07:40:14 PM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  Unexpected result Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 30 Oct 2016 12:52:10 PM UTC, comment #2: 

Just a quick note to confirm that it now works for me too after updating to SVN revision 9004. Thanks!


Sudarshan S Chawathe <chaw>
Sun 30 Oct 2016 02:13:54 AM UTC, comment #1: 

Thanks.  Fixed.

Per Bothner <bothner>
Group administrator
Sat 29 Oct 2016 07:40:14 PM UTC, original submission:  

I believe there is a small bug in kawa/lib/files.scm which results in the ~d in a template such as "kawa~d.tmp" not being replaced by a suitable string (which I assume is the intention).

From what I can tell based on a quick look, changing #\~ to "~" in an indexOf invocation (in the make-temporary-file procedure) fixes things (context diff also attached):

$ diff  kawa/lib/files.scm~ kawa/lib/files.scm
164c164
<          (tilde (fmt:indexOf #\~))
---

>          (tilde (fmt:indexOf "~"))

 
I guess adding an explicit type specifier may be a better fix, but the above seems to do the trick.

All the above is using a SVN version of Kawa from earlier today:

$ kawa --version
Kawa 2.1.9 (revision 8992M)
Copyright (C) 2016 Per Bothner

Sudarshan S Chawathe <chaw>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bothner (Posted a comment)
  • -email is unavailable- added by chaw (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-30 bothner Open/ClosedOpen Closed
    2016-10-30 bothner StatusNone Fixed
        Assigned toNone bothner
    2016-10-29 chaw Attached File- Added make-temporary-file-format.diff, #38840

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code