Skip to content

Commit

Permalink
Merge pull request HaxeFoundation#3095 from mandel59/python-bytes-bug
Browse files Browse the repository at this point in the history
[python] fix haxe.io.Bytes#getString
  • Loading branch information
frabbit committed Jun 4, 2014
2 parents 17650ee + e60cf90 commit 869d20b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/haxe/io/Bytes.hx
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ class Bytes {
try
return new String(b, pos, len, "UTF-8")
catch (e:Dynamic) throw e;
#elseif python
return python.Syntax.pythonCode("self.b[pos:pos+len].decode('UTF-8','replace')");
#else
var s = "";
var b = b;
Expand Down

0 comments on commit 869d20b

Please sign in to comment.