Occasionally running Tux Paint in Korean, Japanese, and possibly other languages would cause Tux Paint to crash. This commit fixes it. This bug was previously mentioned as the possible cause of these previously reported crashes, though they were determined to be unrelated: https://sourceforge.net/p/tuxpaint/mailman/message/37364981/ https://sourceforge.net/p/tuxpaint/mailman/message/37376574/ The cause of the crash turned out to be in the function that loads the input method map (*.im). Some languages that use more than one keystroke to produce one unicode character use this mapfile to track, in a state machine, what keys have been pressed and what unicode character should be output. This state machine's memory is increased dynamically as needed when the input method map file is loaded. There was a line of code that references the old memory that could have moved by the memory increase. This line of code has been moved to prior to the memory increase to avoid accessing memory that may have moved. |
||
|---|---|---|
| .. | ||
| en | ||
| es_ES.UTF-8 | ||
| fr_FR.UTF-8 | ||
| gl_ES.UTF-8 | ||
| html/images | ||
| ja_JP.UTF-8 | ||
| outdated | ||
| AUTHORS.txt | ||
| CHANGES.txt | ||
| COPYING.txt | ||
| default_colors.txt | ||
| dejavu.txt | ||
| Makefile | ||
| README.txt | ||
| RELEASE.txt | ||
See [locale]/html/README.html or [locale]/README.txt, and the other documentation within. Older, outdated translations of documentation reside in the "outdated/" subdirectory.