Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use encode-string to write utf8 strings to the stream

  • Loading branch information...
commit 7e14e33cb032ce82316ac094ca1709723286afe8 1 parent 4abdc0b
@x6j8x x6j8x authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  extra/bson/writer/writer.factor
View
2  extra/bson/writer/writer.factor
@@ -44,7 +44,7 @@ TYPED: write-int32 ( int: integer -- ) INT32-SIZE (>le) ; inline
TYPED: write-double ( real: float -- ) double>bits INT64-SIZE (>le) ; inline
TYPED: write-utf8-string ( string: string -- )
- output-stream get utf8 <encoder> stream-write ; inline
+ get-output utf8 encode-string ; inline
TYPED: write-cstring ( string: string -- )
write-utf8-string 0 write1 ; inline
Please sign in to comment.
Something went wrong with that request. Please try again.