[Scons-users] Coding Problems in Reading Java Files

钟文冰 ZhongWB_95 at 163.com
Mon May 27 11:03:47 EDT 2019


Coding Problems in Reading Java Files
* Version of SCons  ------------------------------- 3.0.5
* Version of Python ------------------------------- 3.7.0
* Version of JDK ----------------------------------- 1.8.0_144
* Which python distribution if applicable -------- python.org
* How you installed SCons --------  python setup.py install
* What Platform are you on? ---------------------- Windows 7
* How to reproduce your issue?  Please include a small self contained reproducer. Likely a SConstruct should do for most issues.

File  scons\SCons\Tool\JavaCommon.py  line:360
    def parse_java_file(fn, version=default_java_version):
        with open(fn, 'r') as f:
            data = f.read()  # There may be Unicode Decode Error
        return parse_java(data, version)
-------------------------------------------------------------------------
I suggest adding a parameter to control the encoding of read files.

发送自 Windows 10 版邮件应用

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20190527/da248c7e/attachment-0001.html>


More information about the Scons-users mailing list