jcryptool / core

JCrypTool Core Plug-ins
https://www.cryptool.org
Eclipse Public License 1.0
163 stars 43 forks source link

An intro error occurred if system locale is lang= ja-jp.utf-8 #236

Closed TomohikoSUZUKI closed 3 years ago

TomohikoSUZUKI commented 3 years ago

Screenshot: VirtualBox_kali ja-jp_16_02_2021_15_00_28 logs errorlog.log And set locale lang=en_us.utf-8. Then any error didn't occur.

I also saw same error occurred at Windows.

simlei commented 3 years ago

Thanks for the report; the extra info about locale and the log files are appreciated! :) I've been able to reproduce that by launching JCT via ./JCrypTool -nl jp. We'll be looking into the issue.

simlei commented 3 years ago

Working on a solution for unknown locales like jp which JCrypTool (rather, in extension, the Eclipse RCP's localization mechanism) can't handle; something along the lines of the following screenshot: image

What is currently complicating the issue is, the restart mechanism of the Eclipse RCP is flawed (regular restart not possible at that early stage of the application) and there's also this bug that makes our current approach to language changes under Linux fail. Too hasty an approach (e.g. home-made restart) will introduce bugs that will make debugging this in the Eclipse IDE impossible, so we'll have to find a smarter way...

simlei commented 3 years ago

fixed with #238; if unexpected errors occur with this, comment here & reopen. Fix included in releases newer than and including https://github.com/jcryptool/core/releases/tag/1.0.3.01.236