Coding Problems in Reading Java Files

钟文冰 <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
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 版邮件应用

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.