Get_Loca.sgm 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!-- $XConsortium: Get_Loca.sgm /main/6 1996/09/08 20:14:03 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN288.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN288.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>Get_Locale</RefEntryTitle>
  13. <ManVolNum>special file</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Symbol Role="Message">Get_Locale</Symbol></RefName>
  17. <RefPurpose>get a tool's locale
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: Get_Loca.sgm /main/6 1996/09/08 20:14:03 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  22. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <RefSynopsisDiv>
  27. <Synopsis>Get_Locale(in string <Emphasis>category</Emphasis>,
  28. out string <Symbol Role="Variable">locale</Symbol>
  29. [...]);
  30. </Synopsis>
  31. </RefSynopsisDiv>
  32. <RefSect1>
  33. <Title>DESCRIPTION</Title>
  34. <Para>The
  35. <Symbol Role="Message">Get_Locale</Symbol> request
  36. reports the
  37. <![ %CDE.C.XO; [XPG4
  38. ]]><![ %CDE.C.CDE; [POSIX
  39. ]]>locale of the indicated locale categories.
  40. </Para>
  41. <Para>The
  42. <Emphasis>category</Emphasis> argument
  43. is the locale category to get.
  44. A locale category is a
  45. group of data types whose output formatting varies according to
  46. locale in a similar way.
  47. ISO C and &str-XX; locale categories are:
  48. </Para>
  49. <InformalExample Remap="indent">
  50. <ProgramListing>LC_ALL
  51. LC_COLLATE
  52. LC_CTYPE
  53. LC_MESSAGES
  54. LC_MONETARY
  55. LC_NUMERIC
  56. LC_TIME
  57. </ProgramListing>
  58. </InformalExample>
  59. <Para>The
  60. <Symbol Role="Variable">locale</Symbol> argument
  61. is the name of the current locale of the indicated category.
  62. The value of
  63. <Symbol Role="Variable">locale</Symbol> is implementation-defined.
  64. <![ %CDE.C.SUN; [For example, Solaris defines such locales as
  65. <Literal>C</Literal>, <Literal>de</Literal>, <Literal>fr</Literal>, <Literal>it</Literal>, etc.
  66. ]]></Para>
  67. </RefSect1>
  68. <RefSect1>
  69. <Title>ERRORS</Title>
  70. <Para>The ToolTalk service may return the following error
  71. in processing the
  72. <Symbol Role="Message">Get_Locale</Symbol> request:
  73. </Para>
  74. <VariableList>
  75. <VarListEntry>
  76. <Term>TT_DESKTOP_EINVAL</Term>
  77. <ListItem>
  78. <Para>The
  79. <Symbol Role="Variable">locale</Symbol> argument is not valid on the handler's host.
  80. </Para>
  81. </ListItem>
  82. </VarListEntry>
  83. </VariableList>
  84. </RefSect1>
  85. <RefSect1>
  86. <Title>APPLICATION USAGE</Title>
  87. <Para>The
  88. &cdeman.ttdt.session.join;, function can be used to register for,
  89. and transparently process, the
  90. <Symbol Role="Message">Get_Locale</Symbol> request.
  91. </Para>
  92. <Para>Also,
  93. <Symbol Role="Message">Get_Locale</Symbol> can be sent by
  94. &cdeman.ttdt.sender.imprint.on;, with the reply being handled transparently.
  95. </Para>
  96. </RefSect1>
  97. <RefSect1>
  98. <Title>SEE ALSO</Title>
  99. <Para><Function>setlocale</Function>3C <![ %CDE.C.XO; [in the &str-Zk;,
  100. ]]><![ %CDE.C.SUN; [<Emphasis>Solaris</Emphasis> <Emphasis>2.3</Emphasis> <Emphasis>Developer's</Emphasis> <Emphasis>Guide</Emphasis> <Emphasis>to</Emphasis> <Emphasis>Internationalization,</Emphasis> ]]>&cdeman.ttdt.sender.imprint.on;, &cdeman.ttdt.session.join;; <Symbol Role="Message">Set_Locale</Symbol> request.
  101. </Para>
  102. </RefSect1>
  103. </RefEntry>
  104. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->