diff --git a/src/compile/utBeamToSrc.erl b/src/compile/utBeamToSrc.erl index 445df25..668498b 100644 --- a/src/compile/utBeamToSrc.erl +++ b/src/compile/utBeamToSrc.erl @@ -68,7 +68,7 @@ doDelFile(CodeBin, SrcBin) -> <>; [Part1, Part2] -> [_, LeftPart] = binary:split(Part2, <<").">>), - delFile(LeftPart, <>) + doDelFile(LeftPart, <>) end. %% 检查源码中是否存在unicode字符 主要是为了检查是否存在中文 @@ -88,7 +88,7 @@ isHasUnicode(SrcDir) -> end end, AllMods = filelib:fold_files(SrcDir, "\\.erl$", true, FunDeal, []), - ModStr = <<<<(atom_to_binary(OneMod))/binary, "\n">> || OneMod <- AllMods>>, + ModStr = <<<<(erlang:atom_to_binary(OneMod))/binary, "\n">> || OneMod <- AllMods>>, file:write_file("hasUnicodeMod.txt", ModStr). checkUnicode(<<>>) ->