Skip to content
This repository was archived by the owner on May 19, 2024. It is now read-only.

Program Fails for Folder Names with Special Characters #30

Closed
Schnubbirunkel opened this issue Apr 3, 2022 · 7 comments
Closed

Program Fails for Folder Names with Special Characters #30

Schnubbirunkel opened this issue Apr 3, 2022 · 7 comments
Labels
heroic Issue may be related to Heroic

Comments

@Schnubbirunkel
Copy link

Using HeroicBashLauncher Flatpak version...

(process:22404): Gtk-WARNING **: 00:21:35.609: Locale not supported by C library.
Using the fallback 'C' locale.
3.32.0
Traceback (most recent call last):
File "HeroicBashLauncher.py", line 21, in
File "listinstalled.py", line 79, in listinstalled
File "createlaunchfile.py", line 55, in createlaunchfile
UnicodeEncodeError: 'ascii' codec can't encode character '\xae' in position 967: ordinal not in range(128)
[22403] Failed to execute script 'HeroicBashLauncher' due to unhandled exception!
Checking if Zenity is installed:

@redromnon
Copy link
Owner

Are you using the Deck?
Is there a game or a folder (like prefix folder) that includes the ® symbol?

@Schnubbirunkel
Copy link
Author

Yes that was it! I've uninstalled that game and installed another and everything worked great.

@redromnon
Copy link
Owner

So did any folder names related to the game have that character? Like wine prefix name, game folder name, etc.

Because the program removes special characters for everything except names of folders related to the game since they are sensitive.

@Schnubbirunkel
Copy link
Author

Yes it was a Indiana Jones game and it had the ® symbol in there.

@redromnon
Copy link
Owner

redromnon commented Apr 4, 2022

Can you confirm if the game's wine prefix name contains the symbol? You can find that under the game's settings->Wine->WinePrefix Folder in the Heroic app.

@Schnubbirunkel
Copy link
Author

20220404_140246
Yes it's in there.

@redromnon
Copy link
Owner

redromnon commented Apr 4, 2022

I can't do anything about this, it's how Heroic assigns the names to the wine prefixes.

But what you can do is edit and delete any special characters like ® (like here in WinePrefix) and try running Bash Launcher again.

@redromnon redromnon added the heroic Issue may be related to Heroic label Apr 4, 2022
@redromnon redromnon changed the title Flatpak Version can't create working .sh Files Program Fails for Folder Names with Special Characters Apr 4, 2022
@redromnon redromnon pinned this issue Apr 4, 2022
@redromnon redromnon unpinned this issue May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
heroic Issue may be related to Heroic
Projects
None yet
Development

No branches or pull requests

2 participants