summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2019-08-06 07:38:49 -0500
committerJeff Epler <jepler@gmail.com>2019-08-06 07:39:09 -0500
commitc4f3a02b3bd3709fd0e07ed07b372b3d5ec3815d (patch)
tree7bdd29c5484884500f7db518435d0bd5a868c26a /shared-module
parent95d2694bc33eddba991abcff1d9b2aba5675c622 (diff)
makeqstrdata: permit longer "compressed" outputs
It is possible for this routine to expand some inputs, and in fact it does for certan strings in the proposed Korean translation of CircuitPython (#1858). I did not determine what the maximum expansion is -- it's probably modest, like len()/7+2 bytes or something -- so I tried to just make enc[] an adequate over-allocation, and then ensured that all the strings in the proposed ko.po now worked. The worst actual expansion seems to be a string that goes from 65 UTF-8-encoded bytes to 68 compressed bytes (+4.6%). Only a few out of all strings are reported as non-compressed.
Diffstat (limited to 'shared-module')
0 files changed, 0 insertions, 0 deletions