The R Project SVN R

Rev

Rev 36792 | Rev 87916 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36792 Rev 41539
Line 1... Line 1...
1
/* Determine the user's language preferences.
1
/* Determine the user's language preferences.
2
   Copyright (C) 2004-2005 Free Software Foundation, Inc.
2
   Copyright (C) 2004-2006 Free Software Foundation, Inc.
3
 
3
 
4
   This program is free software; you can redistribute it and/or modify it
4
   This program is free software; you can redistribute it and/or modify it
5
   under the terms of the GNU Library General Public License as published
5
   under the terms of the GNU Library General Public License as published
6
   by the Free Software Foundation; either version 2, or (at your option)
6
   by the Free Software Foundation; either version 2, or (at your option)
7
   any later version.
7
   any later version.
Line 24... Line 24...
24
 
24
 
25
#include <stdlib.h>
25
#include <stdlib.h>
26
 
26
 
27
#if HAVE_CFPREFERENCESCOPYAPPVALUE
27
#if HAVE_CFPREFERENCESCOPYAPPVALUE
28
# include <string.h>
28
# include <string.h>
29
# include <CFPreferences.h>
29
# include <CoreFoundation/CFPreferences.h>
30
# include <CFPropertyList.h>
30
# include <CoreFoundation/CFPropertyList.h>
31
# include <CFArray.h>
31
# include <CoreFoundation/CFArray.h>
32
# include <CFString.h>
32
# include <CoreFoundation/CFString.h>
33
extern void _nl_locale_name_canonicalize (char *name);
33
extern void _nl_locale_name_canonicalize (char *name);
34
#endif
34
#endif
35
 
35
 
36
/* Determine the user's language preferences, as a colon separated list of
36
/* Determine the user's language preferences, as a colon separated list of
37
   locale names in XPG syntax
37
   locale names in XPG syntax
38
     language[_territory[.codeset]][@modifier]
38
     language[_territory][.codeset][@modifier]
39
   The result must not be freed; it is statically allocated.
39
   The result must not be freed; it is statically allocated.
40
   The LANGUAGE environment variable does not need to be considered; it is
40
   The LANGUAGE environment variable does not need to be considered; it is
41
   already taken into account by the caller.  */
41
   already taken into account by the caller.  */
42
 
42
 
43
const char *
43
const char *