回复: UnicodeDecodeError: 'gbk' codec can't decode byte 0xa3 in position 3242: illegal multibyte sequence
liruncong2018 via Scons-users <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I compiled it in one of two ways: 1) scons -j%NUMBER_OF_PROCESSORS% --experimental=ninja 2) run_ninja_env.bat Attached are build.ninja and run_ninja_env.bat. ------------------ 原始邮件 ------------------ 发件人: "SCons users mailing list" <[email protected]>; 发送时间: 2022年4月27日(星期三) 凌晨2:34 收件人: "SCons users mailing list"<[email protected]>; 主题: Re: [Scons-users] UnicodeDecodeError: 'gbk' codec can't decode byte 0xa3 in position 3242: illegal multibyte sequence On windows you should use the run_ninja_env.bat to ensure that your environment is setup as the ninja file itself is unable to correctly setup windows cmdshells. On Tue, Apr 26, 2022 at 1:33 PM Daniel Moody <[email protected]> wrote: As a work around you can run ninja directly. This particular issue is scons reading and reprinting the ninja subprocess stdout. I'll see if I can reproduce and get a fix. On Tue, Apr 26, 2022 at 1:11 PM Mats Wichmann <[email protected]> wrote: On 4/26/22 06:10, liruncong2018 via Scons-users wrote: > Hi, > > The following log appears when compiling with ninja, is there a > problem with the encoding process?(ninja\__init__.py) > > ··· > > [1/2518] Starting scons daemon... [2K > > [2/2518] Defer to SCons to build build\__cpp_path.txt [2K > > [3/2518] Defer to SCons to build > build\__exe_cpp_path.txt [2K > > [4/2518] Defer to SCons to build > build\__link_objects.txt [2K > > [5/2518] Defer to SCons to build > build\__define_options.txt [2Kscons: *** [build.ninja] > UnicodeDecodeError : 'gbk' codec can't decode byte 0xa3 > in position 3299: illegal multibyte sequence > > Traceback (most recent call last): > > File > "D:\MYBIN\scons-local\scons-local-4.3.1\SCons\Action.py", line > 1295, in execute > > result = self.execfunction(target=target, > source=rsources, env=env) > > File > "D:\MYBIN\scons-local\scons-local-4.3.1\SCons\Tool\ninja\__init__.py", > line 112, in ninja_builder > > for output in execute_ninja(): > > File > "D:\MYBIN\scons-local\scons-local-4.3.1\SCons\Tool\ninja\__init__.py", > line 104, in execute_ninja > > for stdout_line in iter(proc.stdout.readline, ""): > > UnicodeDecodeError: 'gbk' codec can't decode byte 0xa3 > in position 3299: illegal multibyte sequence > that error usually happens when the system codec isn't what we US-based folk expect, and we haven't specified an encoding for a file/stream when reading in text mode so the system codec gets used. _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users
ninja.rar
(application/octet-stream, 98.1 KB) - not displayed