zhu

Results 6 comments of zhu

It seems that `ast.parse()` can handle the encoding, so we can use `open(filename, mode='rb')` to solve this problem. The gbk encoding script file should add `# coding: gbk` line, see...

Add `AmbientCapabilities=CAP_NET_BIND_SERVICE` to the `[Service]` section will solve this problem.

https://github.com/nppoly/cyac#unicode Wrong offset may returns when convert to lowercase outside.

> @zhu Thanks, that's important. So, a safe way would be to use UCS-32 (4 bytes per code point). Which is not very memory-usage friendly. I think UCS-32 cannot solve...

> Note that the rationale for my suggestion to wait is that Python is implementing Unicode and this is a bug in Unicode fixed in Unicode 14+ by introducing a...

I think script tag is unnecessary when matching spoken languages. Maybe add a `ignore_script` argument to `closest_match` function?