2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
6 #include <proto/locale.h>
7 #include <proto/exec.h>
11 #include "../clib/test.h"
13 struct LocaleBase
* LocaleBase
= NULL
;
14 struct Locale
* locale
= NULL
;
18 if (locale
) CloseLocale(locale
);
20 if (LocaleBase
) CloseLibrary((struct Library
*)LocaleBase
);
25 LocaleBase
= (struct LocaleBase
*)OpenLibrary("locale.library",0);
31 locale
= OpenLocale("openlocale.prefs");
34 /* Expected: name of the prefs file */
35 result
= strcmp(locale
->loc_LocaleName
, "openlocale.prefs");
38 /* Expected: native language name */
39 result
= strcmp(locale
->loc_LanguageName
, "polski.language");
42 /* Expected: native language name */
43 result
= strcmp(locale
->loc_PrefLanguages
[0], "polski");