about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-22 10:15:14 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-22 10:15:14 -0700
commitdb541c3595d52e3ff26d2714b70834219047f256 (patch)
treea5364a23f5694ff42e549a81b365c2bdb6f4b411
parent66daf3cc1f479300cf3e58278a1167bd862d855a (diff)
downloadmu-db541c3595d52e3ff26d2714b70834219047f256.tar.gz
6721
-rw-r--r--apps/print-file.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/print-file.mu b/apps/print-file.mu
index c8c487b2..0726164c 100644
--- a/apps/print-file.mu
+++ b/apps/print-file.mu
@@ -31,7 +31,8 @@ $main-body: {
         var c/eax: byte <- read-byte-buffered in-addr
         compare c, 0xffffffff  # EOF marker
         break-if-=
-        print-grapheme 0, c
+        var g/eax: grapheme <- copy c
+        print-grapheme 0, g
         loop
       }
     }