bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #36992] Values printing error


From: Charles H. Turner
Subject: [Bug-kawa] [bug #36992] Values printing error
Date: Sun, 29 Jul 2012 18:27:19 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11

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

                 Summary: Values printing error
                 Project: Kawa
            Submitted by: charlest
            Submitted on: Sun 29 Jul 2012 06:27:19 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Unexpected result
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Here's the current behaviour

#|kawa:1|# (values "ka" "wa")
kawa
#|kawa:2|# (values 1 "wa")
1wa
#|kawa:3|# (values "ka" 1)
ka1
#|kawa:4|# (values 1 2)
1 2

The first three lines are very confusing with less obvious code. The following
"fix" sorts out this small example, but it's certainly incorrect

Index: gnu/kawa/functions/DisplayFormat.java
===================================================================
--- gnu/kawa/functions/DisplayFormat.java       (revision 7281)
+++ gnu/kawa/functions/DisplayFormat.java       (working copy)
@@ -186,7 +186,7 @@
     if (out instanceof OutPort
         && ! (obj instanceof gnu.kawa.xml.UntypedAtomic)
         && ! (obj instanceof Values)
-        && (getReadableOutput()
+        && (getReadableOutput() || obj instanceof String
             || ! (obj instanceof Char
                   /* #ifdef use:java.lang.CharSequence */
                   || obj instanceof CharSequence

Can assign it to me for now if you like, seems like it's going to require
reacquainting myself with how the printer works.

Charles.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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