diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-04 11:15:00 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-04 16:37:05 +0900 |
| commit | d31a084fc83d47eef6c6eb3aac76989da9692853 (patch) | |
| tree | 2a412325bd788cd505bb5cdad90ac498a004e405 /pylupdate3/numberh.cpp | |
| parent | 30954661009ddfb9db2e9daed3bfbd594bb20441 (diff) | |
| download | pytqt-d31a084f.tar.gz pytqt-d31a084f.zip | |
Use utf8 instead of latin1/ascii as default. Address pyuic compatibility with python3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'pylupdate3/numberh.cpp')
| -rw-r--r-- | pylupdate3/numberh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylupdate3/numberh.cpp b/pylupdate3/numberh.cpp index e5ff5de..a52687b 100644 --- a/pylupdate3/numberh.cpp +++ b/pylupdate3/numberh.cpp @@ -140,7 +140,7 @@ static TQString translationAttempt( const TQString& oldTranslation, for ( k = 0; k < p; k++ ) { if ( (!met[k] || pass > 0) && matchedYet[k] == (int) oldNumbers[k].length() && - numberLength(oldTranslation.latin1() + (i + 1) - + numberLength(oldTranslation.utf8() + (i + 1) - matchedYet[k]) == matchedYet[k] ) { // the longer the better if ( best == p || matchedYet[k] > matchedYet[best] ) |
