<< Back to previous view

[CLJS-363] `format` %s behavior is incorrect for keyword, symbol etc. Created: 29/Aug/12  Updated: 27/Jul/13  Resolved: 29/Aug/12

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Shantanu Kumar Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: bug
Environment:

ClojureScript Rhino REPL



 Description   

On the Clojure REPL, `format` works fine:

user=> (format "foo%s" :s) 
"foo:s" 
user=> (format "foo%s" 's) 
"foos"

However, on the CLJS REPL (Rhino), the output is different:

ClojureScript:cljs.user> (format "foo%s" :s) 
"foo 's" 
ClojureScript:cljs.user> (format "foo%s" 's) 
"foo 's"

Reference: http://groups.google.com/group/clojure/browse_thread/thread/b253d810536a4046



 Comments   
Comment by David Nolen [ 29/Aug/12 7:54 PM ]

fixed, http://github.com/clojure/clojurescript/commit/bf0622a594473c9a6de57fe3b5d10e0419fc7a2a

Generated at Mon Oct 20 06:45:19 CDT 2014 using JIRA 4.4#649-r158309.