diff options
author | Eduardo Julian | 2019-05-17 01:30:25 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-05-17 01:30:25 -0400 |
commit | 8e597897978e9ad1045a89bedce4c58525d54aeb (patch) | |
tree | 75bdc8653c192d62c92f17bea1ff22408c39e6ef /stdlib/source | |
parent | d770066b9e2046ea172305dc08f271e1159f7b64 (diff) |
Fixed an accidentally introduced bug (due to OLD compiler JVM interop issues).
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/data/text/encoding.lux | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stdlib/source/lux/data/text/encoding.lux b/stdlib/source/lux/data/text/encoding.lux index 1ce536436..e1066bbcd 100644 --- a/stdlib/source/lux/data/text/encoding.lux +++ b/stdlib/source/lux/data/text/encoding.lux @@ -184,7 +184,11 @@ (def: #export (to-utf8 value) (-> Text Binary) (`` (for {(~~ (static @.old)) - (java/lang/String::getBytes (..name ..utf-8) value) + (java/lang/String::getBytes (..name ..utf-8) + ## The coercion below may seem + ## gratuitous, but removing it + ## causes a grave compilation problem. + (:coerce java/lang/String value)) (~~ (static @.jvm)) (java/lang/String::getBytes (..name ..utf-8) value)}))) |