Skip to content

src: setlocale in main() for tools and the daemon

P V requested to merge pvir/wireplumber:setlocale into master

Pipewire library currently calls setlocale() for localizing messages. However, generally library code should not mess with the C locale, but leave that for the main application to do. Setting the locale is e.g. needed for messages and UI elements to be translated.

Set the locale in main() for wireplumber daemon and tools.


See pipewire!1200 (merged)

Previously, pw_init calls setlocale unconditionally, so this MR is no-op. In future, I'd make pw_init not call setlocale() at all, so the parent application needs to do it.

Merge request reports