Skip to content

Settings/Language option in bottles need specify the encoding #4031

@demolg

Description

@demolg

I set Language to Chinese, that value in bottle.yml is Language: zh_CN. Then table in explorer.exe shows random char

Image

IF I modify Language: zh_CN to Language: zh_CN.UTF-8 in bottle.yml with a text editor, the char display normally

Image

But then options in bottle get empty

Image

flatpak run com.usebottles.bottles
Log in console:

Traceback (most recent call last):
  File "/app/share/bottles/bottles/frontend/views/list.py", line 119, in show_details
    self.window.show_details_view(config=config)
  File "/app/share/bottles/bottles/frontend/windows/window.py", line 334, in show_details_view
    self.page_details.set_config(config or BottleConfig())
  File "/app/share/bottles/bottles/frontend/views/details.py", line 201, in set_config
    self.view_preferences.set_config(config=config)
  File "/app/share/bottles/bottles/frontend/views/bottle_preferences.py", line 488, in set_config
    ManagerUtils.get_languages(from_locale=self.config.Language, get_index=True)
  File "/app/share/bottles/bottles/backend/utils/manager.py", line 398, in get_languages
    raise ValueError("Given locale not in list.")
ValueError: Given locale not in list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions