[issue35228] Index search in CHM help crashes viewer

2018-12-01 Thread Ma Lin
Ma Lin added the comment: I suffered this problem more than one years. Here is a solution, before compiling the chm, modify like this: --- D:\Python-3.7.1\Doc\build\htmlhelp\python371.hhpSun Dec 02 13:12:37 2018 +++ D:\fix_crash\python371.hhp Sun Dec 02 13:05:57 2018 @@ -1,6 +1,6

[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-10 Thread Ma Lin
Ma Lin added the comment: I debugged, this is a duplicate of issue 20844 and issue 27797. Eryk Sun analyzed this detailedly, it's a problem of Windows CRT. -- versions: +Python 3.5, Python 3.6, Python 3.8 ___ Python tracker &

[issue35140] encoding problem: gbk

2018-11-02 Thread Ma Lin
Ma Lin added the comment: Yes, I can reproduce on my Windows 10 (Simplfied Chinese). The file is a pure ASCII file, and doesn't have a BOM prefix. -- ___ Python tracker <https://bugs.python.org/is

[issue35140] encoding problem: gbk

2018-11-02 Thread Ma Lin
Ma Lin added the comment: Let me give an explanation. Run encoding_problem_gbk.py, get an error: D:\>encoding_problem_gbk.py File "D:\encoding_problem_gbk.py", line 1 SyntaxError: encoding problem: gbk If remove the comment line, run as expected. ------

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-18 Thread Ma Lin
Ma Lin added the comment: > It seems to me that this adds escape4chm as unconditional dependency on all > platforms. `Doc/Makefile` also includes `htmlhelp` command, it generates .chm materials. BTW, the related navigation bar still has corrputed characters, see the attached file

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2018-10-09 Thread Ma Lin
Ma Lin added the comment: I searched on Google, an article [1] said: Of note, Mac OS X defines keepidle and keepintvl in terms of milliseconds as opposed to Linux using seconds. On Windows, it's also seconds. Will this option make trouble for cross-platform programs? [1]

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Change by Ma Lin : Added file: https://bugs.python.org/file47858/PR 9758 effects.png ___ Python tracker <https://bugs.python.org/issue32174> ___ ___ Python-bugs-list m

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Ma Lin added the comment: It seems impossible to specify the encoding of .chm to ASCII [1], the available encodings of .chm are limited to a list [2]. So I wrote a Sphinx extension for .chm output, it escapes the characters which (codepoint > 0x7F) to 7-bit ASCII. Most escaped characters

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +9143 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32174> ___ ___ Python-

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Ma Lin added the comment: I will create a PR to fix this within a day. -- ___ Python tracker <https://bugs.python.org/issue32174> ___ ___ Python-bugs-list mailin

[issue34294] re.finditer and lookahead bug

2018-09-10 Thread Ma Lin
Ma Lin added the comment: This bug generates wrong results silently, so I suggest mark it as release blocker for 3.7.1 -- nosy: +Ma Lin ___ Python tracker <https://bugs.python.org/issue34

[issue31652] make install fails: no module _ctypes

2018-07-07 Thread Ma Lin
Ma Lin added the comment: > I expect that the root cause is missing libffi(-dev[el]) on your system Yes, on my Ubuntu 18.04, `make` failed to compile _ctypes module. After install libffi-dev, it was compiled successfully: One more word, full necessary dependencies on my Ubuntu 18.04: s

[issue26917] unicodedata.normalize(): bug in Hangul Composition

2018-06-16 Thread Ma Lin
Ma Lin added the comment: This issue can be closed, already fixed in issue29456 Also, PyPy's current code is correct. -- ___ Python tracker <https://bugs.python.org/is

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-16 Thread Ma Lin
Ma Lin added the comment: You are right. I found a Normalization Test Suite for Unicode 3.2 http://www.unicode.org/Public/3.2-Update/NormalizationTest-3.2.0.txt \u1176 is not in the range of the second character. \u11a7, \u11c3 are not in the range of the third character

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-06-15 Thread Ma Lin
Ma Lin added the comment: > We have a ucd_3_2_0 in unicodedata. Probably this 3.2 unicodedata is used for IDNA2003. In IDNA2003 there is a step: normalize the domain_name string to Unicode Normalization Form C. Now we changed the Composition code of Hangul to Unicode Standard 4.1+,

[issue33108] Unicode char 304 in lowercase has len = 2

2018-03-21 Thread Ma Lin
Ma Lin added the comment: There was a discussion about "Latin Capital Letter I with Dot Above" https://bugs.python.org/issue17252 -- nosy: +Ma Lin ___ Python tracker <https://bugs.python.o

[issue26917] unicodedata.normalize(): bug in Hangul Composition

2018-03-18 Thread Ma Lin
Ma Lin added the comment: > Victor's patch is correct. I'm afraid you are wrong. Please see PR 1958 in issue29456, IMO this PR can be merged. ------ nosy: +Ma Lin ___ Python tracker <https://bugs.pytho

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-03-12 Thread Ma Lin
Ma Lin added the comment: The source code of .chm changed between 3.6.2 and 3.6.3, the former uses escaped html entities. I couldn't find out which commit caused this change. 3.6.2 chm: What’s New In Python 3.6 3.6.3 chm: What抯 New In Python 3.6 3.6.2 chm: Summary – Release highlights

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-03-11 Thread Ma Lin
Change by Ma Lin : Added file: https://bugs.python.org/file47476/screenshot.PNG ___ Python tracker <https://bugs.python.org/issue32174> ___ ___ Python-bugs-list mailin

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-03-11 Thread Ma Lin
Ma Lin added the comment: Here is a solution: 1, open a page(whatever) with Internet Explorer. 2, right click the page -> Encoding -> check "Auto-Select" Then the wrong characters (�/抯) will disappear forever. > Does anyone else see this problem? Probably a lot of people h

[issue32818] subprocess crash under Windows compatibility mode

2018-03-01 Thread Ma Lin
Change by Ma Lin : -- title: multiprocessing segmentfault under Windows compatibility mode -> subprocess crash under Windows compatibility mode ___ Python tracker <https://bugs.python.org/issu

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2018-02-28 Thread Ma Lin
Ma Lin added the comment: ping, this was forgotten. -- nosy: +Ma Lin ___ Python tracker <https://bugs.python.org/issue29456> ___ ___ Python-bugs-list mailin

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-02-28 Thread Ma Lin
Ma Lin added the comment: 3.7.0 beta2 still segmentfault. Finer, please have a look. segmentfault conditions: 64bit Windows 10 (1709) + 32bit Python 3.7.0 Beta2 + Compatibility Mode enabled. (64bit Python doesn't segmentfault) -- nosy: +Segev

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-02-13 Thread Ma Lin
Ma Lin added the comment: Git bisect says this is the first bad commit: https://github.com/python/cpython/commit/b2a6083eb0384f38839d3f1ed32262a3852026fa -- ___ Python tracker <https://bugs.python.org/issue32

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-02-12 Thread Ma Lin
Ma Lin added the comment: segmentfault conditions: 64bit Windows + 32bit Python + Compatibility Mode enabled. some infomation: 1, 64bit Python doesn't segmentfault. 2, 3.7.0a3 is ok, 3.7.0a4 segmentfaults. 3, unrelated to Windows SDK, switch from 1709 SDK to 1703 SDK also segmentf

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-02-10 Thread Ma Lin
Ma Lin added the comment: Here is two traceback messages: D:\git\cpython\PCbuild\win32>python.exe -X dev d:\git\cpython\Lib\test\test_multiprocess ing_main_handling.py ssF == F

[issue32818] multiprocessing segmentfault under Windows compatibility mode

2018-02-10 Thread Ma Lin
New submission from Ma Lin : Reproduce: Right click python.exe -> properties -> compatibility tab -> enable compatibility mode (e.g. Windows 7) Then run this test will get a segmentfault: test_multiprocessing_main_handling.py CPython 3.6 is Ok. -- components: Windows

[issue32394] socket lib beahavior change in 3.6.4

2018-02-10 Thread Ma Lin
Ma Lin added the comment: PR 5523 is prepared for master/3.7 branches. PR 5585 is prepared for 3.6 branch. -- ___ Python tracker <https://bugs.python.org/issue32

[issue32394] socket lib beahavior change in 3.6.4

2018-02-08 Thread Ma Lin
Ma Lin added the comment: > What's about other OS/flags? > Should we commit that every exposed socket flag is supported in runtime? > It looks like very heavy burden. Let alone run-time check. Flags only depend on .C code and the building SDK, therefore, for a certain officia

[issue32394] socket lib beahavior change in 3.6.4

2018-02-07 Thread Ma Lin
Ma Lin added the comment: Here is PR 5585 for 3.6 branch. For 3.7+, I would suggest patch in socketmodule.c like this: PyMODINIT_FUNC PyInit__socket(void) { PyObject *m, *has_ipv6; ... ... ... +#ifdef MS_WINDOWS + return remove_unusable_flags(m); +#else return m; +#endif

[issue32394] socket lib beahavior change in 3.6.4

2018-02-07 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +5403 ___ Python tracker <https://bugs.python.org/issue32394> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32394] socket lib beahavior change in 3.6.4

2018-02-05 Thread Ma Lin
Ma Lin added the comment: > Or the issue is specific for TCP_KEEPCNT for Windows only? Four flags involved. In this table, result column is search results from GitHub. keyword available result TCP_FASTOPEN win10 1607+ 778 TCP_KEEPCNTwin10 1703+ 3356 TCP_KEEPIDLE wi

[issue32394] socket lib beahavior change in 3.6.4

2018-02-04 Thread Ma Lin
Ma Lin added the comment: > We don't remove unsupported socket flags on Unix, why should we do it for > Windows? We have this problem because: compile with new Windows SDK, but run on old version Windows. On Linux/Unix, the compile-time headers always consist with the system

[issue32394] socket lib beahavior change in 3.6.4

2018-02-03 Thread Ma Lin
Ma Lin added the comment: I create a new one (PR 5523), I'm not a C & socket expert, so if you want to improve/polish the patch, feel free to create a new PR based on (or not) it. -- ___ Python tracker <https://bugs.python.or

[issue32394] socket lib beahavior change in 3.6.4

2018-02-03 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +5352 ___ Python tracker <https://bugs.python.org/issue32394> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32394] socket lib beahavior change in 3.6.4

2018-02-02 Thread Ma Lin
Ma Lin added the comment: Glad to see PR 5468 not merged, I found it makes socket.py complicated. Now I'm inclined to patch the code in PyInit__socket(void) of socketmodule.c https://github.com/python/cpython/blob/3.6/Modules/socketmodule.c#L6504 There already has a MS-Windows ve

[issue32394] socket lib beahavior change in 3.6.4

2018-02-01 Thread Ma Lin
Ma Lin added the comment: So we either need to explicitly exclude this symbol on Windows (at least until we drop support for pre-Windows 10 versions) or silently ignore setsockopt errors for future good arguments. I'm inclined to do the former - other opinions? -- I&#x

[issue32394] socket lib beahavior change in 3.6.4

2018-02-01 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +5294 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issue32394> ___ _

[issue32394] socket lib beahavior change in 3.6.4

2018-01-31 Thread Ma Lin
Ma Lin added the comment: Base on Kamil's code, a little improvements. if hasattr(sys, 'getwindowsversion'): WIN_MAJOR, _, WIN_BUILD, *_ = sys.getwindowsversion() if WIN_MAJOR == 10: if WIN_BUILD >= 15063:# Windows 10 1703 pass elif

[issue24117] Wrong range checking in GB18030 decoder.

2017-04-07 Thread Ma Lin
Ma Lin added the comment: I closed this issue, because it involved too many things. 1, for GB18030 decoder bug, see issue29990. 2, for hz encoder bug, see issue30003. 3, for problem in Traditional Chinese codecs, please create a new issue

[issue30003] Remove hz codec

2017-04-07 Thread Ma Lin
Ma Lin added the comment: >From my subjective feelings, probably no old archives still exist, but I can't >assert it. That's why I suggest remove it, or at least don't fix it. Ah, let's slow down the pace, this bug exists over a dacade, we don't need to sol

[issue30003] Remove hz codec

2017-04-06 Thread Ma Lin
Ma Lin added the comment: I tried to fix this two years ago, here is the patch (not merged): http://bugs.python.org/review/24117/diff/14803/Modules/cjkcodecs/_codecs_cn.c But later, I thought it's a good opportunity to remove this codec, this serious bug indicates that almost no one is

[issue29990] Range checking in GB18030 decoder

2017-04-06 Thread Ma Lin
Ma Lin added the comment: This is a very trivial bug, it's hard to imagine a scene that someone trying to decode those 8630 illegal 4-byte sequences with GB18030 decoder. And I think this bug can't lead to security vulnerabilities. As far as I can see, GB2312/GBK/GB18030 codecs a

[issue29990] Range checking in GB18030 decoder

2017-04-05 Thread Ma Lin
Ma Lin added the comment: > except 0x80 (€) I suppose the English edition is not the final release of GB18030-2000. At the end of official Chinese edition of GB18030-2005, listed the difference between GB18030-2000 and GB18030-2005 clearly, it doesn't mention 0x80 (€), so GB18030-200

[issue30003] Remove hz codec

2017-04-05 Thread Ma Lin
New submission from Ma Lin: hz is a Simplified Chinese codec, available in Python since around 2004. However, hz encoder has a serious bug, it forgets to escape ~ >>> 'hi~'.encode('hz') b'hi~'# the correct output should be b'hi~~' As a resul

[issue29990] Range checking in GB18030 decoder

2017-04-04 Thread Ma Lin
Changes by Ma Lin : -- pull_requests: +1171 ___ Python tracker <http://bugs.python.org/issue29990> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24117] Wrong range checking in GB18030 decoder.

2017-04-04 Thread Ma Lin
Changes by Ma Lin : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue24117> ___ ___ Python-bugs-

[issue29990] Range checking in GB18030 decoder

2017-04-04 Thread Ma Lin
New submission from Ma Lin: This issue is split from issue24117, that issue became a soup of small issues, so I'm going to close it. For 4-byte GB18030 sequence, the legal range is: 0x81-0xFE for the 1st byte 0x30-0x39 for the 2nd byte 0x81-0xFE for the 3rd byte 0x30-0x39 for the 4th

[issue24821] The optimization of string search can cause pessimization

2017-03-29 Thread Ma Lin
Changes by Ma Lin : -- nosy: +Ma Lin ___ Python tracker <http://bugs.python.org/issue24821> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26744] print() function hangs on MS-Windows 10

2017-03-09 Thread Ma Lin
Ma Lin added the comment: This is an invalid issue, very sorry for waste your time! Especially apologize to Stinner. After enabling `QuickEdit Mode`, then click the console will suspend the program. -- resolution: -> not a bug stage: -> resolved status: open -&g

[issue29355] sqlite3: remove sqlite3_stmt_readonly()

2017-02-22 Thread Ma Lin
Ma Lin added the comment: The "old way" is not using sqlite3_stmt_readonly(). Before 3.6.0, we only count rowcount for INSERT, UPDATE, DELETE, REPLACE: https://hg.python.org/cpython/file/3.5/Modules/_sqlite/cursor.c#l689 These four statements can be representd by is_dml in PR

[issue29355] sqlite3: remove sqlite3_stmt_readonly()

2017-02-20 Thread Ma Lin
Ma Lin added the comment: > Is there currently a solution to build Python 3.6 with sqlite3 support? I installed SQLite 3.16.2 on a Debian-based system with this way: http://stackoverflow.com/questions/26261080 No idea whether it will work on RHE

[issue22594] Add a link to the regex module in re documentation

2017-02-08 Thread Ma Lin
Ma Lin added the comment: How about this? Is it too long? @Matthew Barnett, I'm animalize on your repository. .. seealso:: Third-party module `regex <https://pypi.python.org/pypi/regex>`_, is a substitute for re module, it offers some mainstream features which re m

[issue28518] execute("begin immediate") throwing OperationalError

2017-01-31 Thread Ma Lin
Ma Lin added the comment: Let me give a summary. Before 3.6.0 (before 284676cf2ac8): implicit begin: st in (INSERT, UPDATE, DELETE, REPLACE) implicit commit: st not in (SELECT, INSERT, UPDATE, DELETE, REPLACE) In 3.6.0 (after 284676cf2ac8): implicit begin: (not sqlite3_stmt_readonly(st)) and

[issue28518] execute("begin immediate") throwing OperationalError

2017-01-26 Thread Ma Lin
Ma Lin added the comment: You can set isolation_level = None in sqlite3.connect() parameters, then sqlite3 module will not begin a transaction implicitly. Another way is disabling auto-begin-transaction temporarily: sql.isolation_level = None sql.execute('VACUUM') sql.isola

[issue29121] sqlite3 Controlling Transactions documentation not updated

2017-01-25 Thread Ma Lin
Ma Lin added the comment: After read some issues, there are two major concerns: 1, backward compatibility. 2, implicit commit is bad, tolerates bug-prone codes. However they are not contradictory if we print a warning when doing an implicit commit. Some messages like this: Warning: sqlite3

[issue29121] sqlite3 Controlling Transactions documentation not updated

2017-01-24 Thread Ma Lin
Changes by Ma Lin : -- nosy: +Ma Lin ___ Python tracker <http://bugs.python.org/issue29121> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue29355] sqlite3: remove sqlite3_stmt_readonly()

2017-01-23 Thread Ma Lin
New submission from Ma Lin: In CPython 3.6.0, sqlite3 module uses sqlite3_stmt_readonly(), however this function is only available on SQLite 3.7.4+ (release on 2010-12-07). Then CPython 3.6.0 can not be compiled on RHEL6 (with SQLite 3.6.x), complaints: issue29098, issue29325

[issue29325] pysqlite: Evaluate removal of sqlite3_stmt_readonly

2017-01-23 Thread Ma Lin
Ma Lin added the comment: Just remind, there is a chance to remove sqlite3_stmt_readonly(). :) -- nosy: +berker.peksag, palaviv ___ Python tracker <http://bugs.python.org/issue29

[issue28518] execute("begin immediate") throwing OperationalError

2017-01-23 Thread Ma Lin
Ma Lin added the comment: If the answer is (no, no) , the behavior strictly follows the doc changes in commit 284676cf2ac8. Anyway, I'm not a deep user of SQLite, I can't give further advices. :( -- ___ Python tracker <http://bu

[issue29325] pysqlite: Evaluate removal of sqlite3_stmt_readonly

2017-01-19 Thread Ma Lin
Ma Lin added the comment: RHEL6's life-cycle is around 10 years [1], it will be alive until 2020. https://access.redhat.com/support/policy/updates/errata/ Let's wait issue28518, IMO, that issue will decide whether we can get around sqlite3_stm

[issue29325] pysqlite: Evaluate removal of sqlite3_stmt_readonly

2017-01-19 Thread Ma Lin
Ma Lin added the comment: sqlite3 module in CPython 3.6.0 also uses sqlite3_stmt_readonly(). see 284676cf2ac8. sqlite3_stmt_readonly() was used twice [1][2], but it seems that we can avoid using this function in both of them. [1] https://hg.python.org/cpython/file/3.6/Modules/_sqlite/cursor.c

[issue28518] execute("begin immediate") throwing OperationalError

2017-01-17 Thread Ma Lin
Ma Lin added the comment: some comments on Aviv Palivoda's patch. -- ___ Python tracker <http://bugs.python.org/issue28518> ___ ___ Python-bugs-list m

[issue28518] execute("begin immediate") throwing OperationalError

2017-01-02 Thread Ma Lin
Ma Lin added the comment: I'm trying to catch up with you. Does it mean, if I want execute VACUUM, I have to commit manually? Like this: if conn.in_transaction: conn.commit() conn.execute("vacuum") -- ___ Python tracker <http

[issue28518] execute("begin immediate") throwing OperationalError

2016-12-30 Thread Ma Lin
Ma Lin added the comment: I have no idea about how to fix it, but I would like to suggest that add back this test which was removed in commit 284676cf2ac8 : file: /Lib/sqlite3/test/transactions.py def CheckVacuum(self): self.cur.execute("create table test(i)") self.cur.execu

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-12-17 Thread Ma Lin
Ma Lin added the comment: #29003 created -- ___ Python tracker <http://bugs.python.org/issue10740> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29003] sqlite3: can't run VACUUM on Python 3.6

2016-12-17 Thread Ma Lin
New submission from Ma Lin: I'm using Python 3.6.0 RC2. When I try to run VACUUM command, an exception raised: conn.execute('begin') # <- remove this line get the same result conn.execute('VACUUM') sqlite3.OperationalError: cannot VACUUM from within a transaction

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-12-17 Thread Ma Lin
Ma Lin added the comment: I'm using Python 3.6.0 RC2, I don't know if it's a bug. When I try to run VACUUM command, an exception raised: conn.execute('begin') # <- remove this line get the same result conn.execute('VACUUM') sqlite3.OperationalError: c

[issue26882] The Python process stops responding immediately after starting

2016-04-29 Thread Ma Lin
Ma Lin added the comment: Hang everytime? When it hangs, try to press ENTER of keyboard on the console window, does it work? If it works, see issue26744: print() function hangs on MS-Windows 10 -- nosy: +Ma Lin ___ Python tracker <h

[issue26744] print() function hangs on MS-Windows 10

2016-04-17 Thread Ma Lin
Ma Lin added the comment: faulthandler module caught a hang just now: Timeout (0:01:00)! Thread 0x0eb0 (most recent call first): File "D:\git\tz2txt\tz2txt\gui.py", line 262 in delfile File "C:\Python35\lib\tkinter\__init__.py", line 1549 in __

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: I'm afraid not. If run it 1000 times, only about <5 times occurs, the others are quite fine. I have installed faulthandler, let's wait the hunting. -- ___ Python tracker <http://bugs.pytho

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: >> It looks like a bug in your application. Can you provide a short script to >> reproduce the bug? It's hard to believe it, the code has no way to behavior like that. I think this is not reproducible, it's random hang. As my subjective feel

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: ok, I will try faulthandler module. >> Are you running your program in the Windows console (cmd.exe)? In IDLE? In >> PowerShell? One runs in pure command line mode, cmd.exe. The other is a simple tkinter GUI with a console for output message. To be hones

[issue26744] print() function hangs on MS-Windows 10

2016-04-13 Thread Ma Lin
Ma Lin added the comment: After my MS-Windows 10 updated to 10586.218 this day, it occurs again. It hung, the console cursor was flashing at the beginning of the current line. I pressed ENTER key on the console window, then it printed the supposed content and went on. I have read issue26624

[issue26744] print() function hangs on MS-Windows 10

2016-04-12 Thread Ma Lin
New submission from Ma Lin: My OS is MS-Windows 10 X86-64 (Home edition), with the lastest update (now it's 10586.164). I have two programs, they occasionally infinite hang. After a few months observation, I provide these infomation: 1, print() function cause the infinite hang. 2, If it

[issue24036] GB2312 codec is using a wrong covert table

2016-01-04 Thread Ma Lin
Ma Lin added the comment: I agree with you, "won't fix". -- ___ Python tracker <http://bugs.python.org/issue24036> ___ ___ Python-bugs-list mai

[issue24117] Wrong range checking in GB18030 decoder.

2016-01-02 Thread Ma Lin
Ma Lin added the comment: I posted in a Taiwanese forum: https://groups.google.com/forum/#!forum/pythontw no reply yet. -- ___ Python tracker <http://bugs.python.org/issue24

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-18 Thread Ma Lin
Ma Lin added the comment: >> If you could provide links to the relevant pages/section we can verify that >> the codecs are indeed incorrect. Here is CP950, 0xC6A1 is not in it. https://msdn.microsoft.com/zh-cn/goglobal/cc305155 I can provide one link, but there are many vari

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-18 Thread Ma Lin
Ma Lin added the comment: This is not a de-facto standard, it should be fixed. I already posted this infomation on a Taiwan Python community, let's wait their inspection. -- ___ Python tracker <http://bugs.python.org/is

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-18 Thread Ma Lin
Ma Lin added the comment: >> I examined all Chinese codecs I said it above, but I forgot Taiwan and HongKong are using Chinese as well. BIG5 and CP950 are using a wrong convert table, test this: >>> u = b'\xC6\xA1'.decode('big5') >>> hex(ord(u))

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-07 Thread Ma Lin
Ma Lin added the comment: Good question. GB2312: I tested those programming languages one by one. GBK/CP936/GB18030-2000: I gathered data via Internet as much as I can, then compare them to Python3's codecs. I check key points with authoritative source, and verify every appeared conf

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-07 Thread Ma Lin
Changes by Ma Lin : Added file: http://bugs.python.org/file39320/forpy35.patch ___ Python tracker <http://bugs.python.org/issue24117> ___ ___ Python-bugs-list mailin

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-07 Thread Ma Lin
Changes by Ma Lin : Added file: http://bugs.python.org/file39319/forpy34.patch ___ Python tracker <http://bugs.python.org/issue24117> ___ ___ Python-bugs-list mailin

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-07 Thread Ma Lin
Changes by Ma Lin : Removed file: http://bugs.python.org/file39277/forpy27.patch ___ Python tracker <http://bugs.python.org/issue24117> ___ ___ Python-bugs-list mailin

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-07 Thread Ma Lin
Ma Lin added the comment: I examined all Chinese codecs, here are the patches, please review them, feel free to ask me your question. Thanks to Hye-Shik, your framework is very easy to understand :) -- Added file: http://bugs.python.org/file39318/forpy27.patch

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-07 Thread Ma Lin
Changes by Ma Lin : Removed file: http://bugs.python.org/file39278/forpy3.patch ___ Python tracker <http://bugs.python.org/issue24117> ___ ___ Python-bugs-list mailin

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-04 Thread Ma Lin
Ma Lin added the comment: I found another bug in hz codec. hz encoding uses 7-bit ASCII to represent Chinese characters, it was popular in USENET networks in the late 1980s and early 1990s. I will do more check and fix them together, then I will invite you to review the patch. u = &#x

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-03 Thread Ma Lin
Changes by Ma Lin : -- title: A small bug in GB18030 decoder. -> Wrong range checking in GB18030 decoder. ___ Python tracker <http://bugs.python.org/issu

[issue24117] A small bug in GB18030 decoder.

2015-05-03 Thread Ma Lin
Changes by Ma Lin : -- type: -> behavior Added file: http://bugs.python.org/file39278/forpy3.patch ___ Python tracker <http://bugs.python.org/issue24117> ___ _

[issue24117] A small bug in GB18030 decoder.

2015-05-03 Thread Ma Lin
New submission from Ma Lin: Hi, There is a small bug in GB18030 decoder. For 4-byte sequence, the legal range is: 0x81-0xFE for the 1st byte 0x30-0x39 for the 2nd byte 0x81-0xFE for the 3rd byte 0x30-0x39 for the 4th byte The current code forgets to check 0xFE of the 1st and 3rd byte

[issue24036] GB2312 codec is using a wrong covert table

2015-04-24 Thread Ma Lin
Ma Lin added the comment: Andre Lemburg, We don't need any modify, A844 is in GBK but not in GB2312, so no need to add it into GB2312. Your logic is right, it's hard to judge which one is wrong. But U+30FB (· KATAKANA MIDDLE DOT) and U+2015 (— HORIZONTAL BAR) have no reason a

[issue24036] GB2312 codec is using a wrong covert table

2015-04-23 Thread Ma Lin
Ma Lin added the comment: Today, I investigated these popular programming languages, all are the latest version. iconv-1.14 wrong version php-5.6.8 wrong version (php is using iconv) ActivePerl-5.20.2wrong version GoLang-1.4.2 no GB2312, only has GBK

[issue24036] GB2312 codec is using a wrong covert table

2015-04-23 Thread Ma Lin
Ma Lin added the comment: "Since MIDDLE DOT is a common character, this bug is annoying." Sorry, it's MIDDLE DOT, not DASH. -- ___ Python tracker <http://bugs.pyt

[issue24036] GB2312 codec is using a wrong covert table

2015-04-23 Thread Ma Lin
New submission from Ma Lin: While I was trying to optimize GB2312/GBK/GB18030-2000 codecs (they are three encodings that widely used in China), I found there is a bug. The three encodings, their relation should be: GB2312 ⊂ GBK ⊂ GB18030-2000. However, in Python's implement: GB2312

<    1   2   3   4