Skip to content

Cannot set language to Serbian (Latin) on newer Windows versions #4203

@nvaccessAuto

Description

@nvaccessAuto

Reported by mdcurran on 2014-06-17 22:49
It seems that in Windows 8, and possibly earlier it is impossible to run NVDA on a machine with the user language set to Serbian (Latin) (LCID 0x241a) where the NVDA language is 'Windows'. as this LCID does not exist in Python's locale.windows_locale. In fact a KeyError is raised and NVDA fails to initialize.
We should catch KeyError when looking up the LCID, and fallback to using LCIDToLocaleName if this function is available. Eventually we should consider using this before using locale.windows_locale, but this could be a breaking change so for now we should only fall back to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions