You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the template file contains an UTF-16 character. This file was generated by XCode's ibtool and once I removed this character everything works fine.
Running this command with --errorlevel=traceback gives me this trace:
Traceback (most recent call last):
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/misc/optrecurse.py", line 536, in recursiveprocess
fulltemplatepath)
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/convert/convert.py", line 190, in processfile
fulltemplatepath)
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/misc/optrecurse.py", line 592, in processfile
**passthroughoptions):
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/convert/po2prop.py", line 203, in convertstrings
remove_untranslated=remove_untranslated)
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/convert/po2prop.py", line 230, in convertprop
outputprop = convertor.convertstore(includefuzzy)
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/convert/po2prop.py", line 94, in convertstore
outputstr = self.convertline(line)
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/convert/po2prop.py", line 152, in convertline
delimiter_char, delimiter_pos = self.personality.find_delimiter(line)
File "/usr/local/Cellar/translate-toolkit/2.2.5/libexec/lib/python2.7/site-packages/translate/storage/properties.py", line 283, in find_delimiter
if cls.key_wrap_char != '' and line[start_pos] == cls.key_wrap_char:
IndexError: string index out of range
As you can see, I reproduced this bug with version 2.2.5. However, this didn't happen in version 1.12.0
The text was updated successfully, but these errors were encountered:
katanagari7c1
changed the title
po2prop: index out of range error with utf-16 files
po2prop: index out of range error with UTF-16 files
Nov 16, 2017
I've just created a repo with the files required to reproduce the error:
https://github.com/katanagari7c1/po2prop-out-of-range
Note that the template file contains an UTF-16 character. This file was generated by XCode's ibtool and once I removed this character everything works fine.
Running this command with --errorlevel=traceback gives me this trace:
As you can see, I reproduced this bug with version 2.2.5. However, this didn't happen in version 1.12.0
The text was updated successfully, but these errors were encountered: