bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #49475] make-temporary-file does not interpret ~d proper


From: Sudarshan S Chawathe
Subject: [Bug-kawa] [bug #49475] make-temporary-file does not interpret ~d properly
Date: Sat, 17 Dec 2016 20:33:00 -0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?49475>

                 Summary: make-temporary-file does not interpret ~d properly
                 Project: Kawa
            Submitted by: chaw
            Submitted on: Sat 29 Oct 2016 07:40:14 PM GMT
                Category: Scheme language
                Severity: 3 - Normal
              Item Group: Unexpected result
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 29 Oct 2016 07:40:14 PM GMT  Name: make-temporary-file-format.diff 
Size: 1kB   By: chaw

<http://savannah.gnu.org/bugs/download.php?file_id=38840>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49475>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]