2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: LocStrToDateGetCharFunc - locale.library's private replacement
6 of dos.library/DosGetLocalizedString function. IPrefs will install
12 #include <exec/types.h>
13 #include <proto/exec.h>
14 #include <proto/dos.h>
15 #include <proto/locale.h>
16 #include "locale_intern.h"
18 /*****************************************************************************
21 #include <proto/locale.h>
23 AROS_PLH1(CONST_STRPTR
, LocDosGetLocalizedString
,
26 AROS_LHA(LONG
, stringNum
, D1
),
29 struct DosLibrary
*, DOSBase
, 38, Locale
)
32 See dos.library/DosGetString
35 See dos.library/DosGetString
40 This function is not called by apps directly. Instead
41 dos.library/DosGetLocalizedString is patched to use this function.
42 This means that the LocaleBase parameter above actually points to
43 DOSBase, so we make use of the global LocaleBase variable. This
44 function is marked as private, therefore the headers generator won't
45 mind the different basename in the header.
52 dos.library/DosGetString()
56 *****************************************************************************/
60 LONG
*p
= DOSBase
->dl_Errors
->estr_Nums
;
61 UBYTE
*q
= DOSBase
->dl_Errors
->estr_Strings
;
64 /* We should really call the original DosGetString(), but ah well... */
86 return GetCatalogStr(IntLB(LocaleBase
)->lb_CurrentLocale
->il_DosCatalog
,