瀏覽代碼

[python] use waneck escaping instead of base64 here too

Simon Krajewski 10 年之前
父節點
當前提交
d5ff51a298
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -2137,7 +2137,7 @@ module Generator = struct
 				end else
 				end else
 					","
 					","
 				in
 				in
-				let k_enc = Base64.str_encode k in
+				let k_enc = Codegen.escape_res_name k false in
 				let slash_index = try (String.rindex ctx.com.file '/')+1 with Not_found -> 0 in
 				let slash_index = try (String.rindex ctx.com.file '/')+1 with Not_found -> 0 in
 				let len = String.length ctx.com.file - slash_index in
 				let len = String.length ctx.com.file - slash_index in
 				let file_name = String.sub ctx.com.file slash_index len in
 				let file_name = String.sub ctx.com.file slash_index len in