From 1b0ac79ba19532ff759578b5ae42363e812d2387 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Tue, 24 Oct 2023 00:44:25 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compile/utBeamToSrc.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(<<>>) ->