perklab@perklabseg:~/Slicer/Slicer-5.0.2-linux-amd64$ ./Slicer --testing --python-code "print('GMM_Cráneos_Armadillo\n')"
Switch to module: "Welcome"
GMM_Cráneos_Armadill
Switch to module: ""
Switch to module: ""
I’ve tried the same command with bypassing the launcher (started bash with the launcher and then started SlicerApp-real from there) and it worked well:
perklab@perklabseg:~/Slicer/Slicer-5.0.2-linux-amd64$ ./Slicer --launch bash
perklab@perklabseg:~/Slicer/Slicer-5.0.2-linux-amd64$ ./bin/SlicerApp-real --testing --python-code "print('GMM_Cráneos_Armadillo\n')"
Switch to module: "Welcome"
GMM_Cráneos_Armadillo
Switch to module: ""
Switch to module: ""
I’ve had a look at the code and found the root cause of the problem. The launcher does not use UTF8 everywhere, but there are toLatin1 calls in it. We should replace those by toLocal8bit or toUtf8. I’ve submitted a pull request with this change: