Browse Source

Fix issue #4608 in Python

Ryusei Yamaguchi 10 năm trước cách đây
mục cha
commit
997ee64982
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -403,7 +403,7 @@ module Transformer = struct
 			List.iter (fun es ->
 				match es.eexpr with
 				| TConst (TString s) ->
-					let l = String.length s in
+					let l = UTF8.length s in
 					let sl = try
 						Hashtbl.find length_map l
 					with Not_found ->