GET_LOCALE(4)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

✨ NAME ✨

This is the Get_Locale page from the special-file manual, bestie β€” it gets a tool's locale. Yes, literally that. πŸ’…


🌸 SYNOPSIS 🌸

Get_Locale(in string category,
               out string locale
               [...]);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the Get_Locale request reports the POSIX locale of the indicated locale categories. ✨

The category argument is the locale category to get. A locale category is a group of data types whose output formatting varies according to locale in a similar way. The ISO C and X/Open locale categories are:

  • LC_ALL
  • LC_COLLATE
  • LC_CTYPE
  • LC_MESSAGES
  • LC_MONETARY
  • LC_NUMERIC
  • LC_TIME

The locale argument is the name of the current locale of the indicated category. The value of locale is implementation-defined β€” that’s just the rules, no cap. 🫢

πŸ’€ ERRORS πŸ’€

The ToolTalk service may return the following error in processing the Get_Locale request:

  • TT_DESKTOP_EINVAL β€” the locale argument is not valid on the handler's host. 😭

πŸŽ€ APPLICATION USAGE πŸŽ€

The ttdt_session_join(3) function can be used to register for, and transparently process, the Get_Locale request. 🧚

Also, Get_Locale can be sent by ttdt_sender_imprint_on(3), with the reply being handled transparently. πŸ’–

🌈 SEE ALSO 🌈

setlocale3C ttdt_sender_imprint_on(3), ttdt_session_join(3); Set_Locale request.


That’s the whole Get_Locale special-file page, bestie β€” the original footer has no source, version, or date line to quote, just the title again, so this is the cute sign-off. Periodt. πŸ’œπŸŽ€

πŸ“¦ where this page comes from