~ubuntu-branches/ubuntu/saucy/m17n-lib/saucy

« back to all changes in this revision

Viewing changes to intl/langprefs.c

  • Committer: Bazaar Package Importer
  • Author(s): Harshula Jayasuriya
  • Date: 2010-11-23 01:39:29 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101123013929-rs3kpqgu4kr3qx32
Tags: 1.6.2-1
* New upstream release 1.6.2.
* Update Standards-Version to Debian Policy 3.9.1. (No changes)
* debian/control: Depends: m17n-db and m17n-contrib. (Closes: #599643)
* PATCH: (make_locale): Don't call setlocale.  Just parse the arg NAME.
         (Closes: #601858)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
4
   This program is free software; you can redistribute it and/or modify it
5
5
   under the terms of the GNU Library General Public License as published
13
13
 
14
14
   You should have received a copy of the GNU Library General Public
15
15
   License along with this program; if not, write to the Free Software
16
 
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
16
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17
17
   USA.  */
18
18
 
19
19
/* Written by Bruno Haible <bruno@clisp.org>.  */
26
26
 
27
27
#if HAVE_CFPREFERENCESCOPYAPPVALUE
28
28
# include <string.h>
29
 
# include <CFPreferences.h>
30
 
# include <CFPropertyList.h>
31
 
# include <CFArray.h>
32
 
# include <CFString.h>
 
29
# include <CoreFoundation/CFPreferences.h>
 
30
# include <CoreFoundation/CFPropertyList.h>
 
31
# include <CoreFoundation/CFArray.h>
 
32
# include <CoreFoundation/CFString.h>
33
33
extern void _nl_locale_name_canonicalize (char *name);
34
34
#endif
35
35
 
36
36
/* Determine the user's language preferences, as a colon separated list of
37
37
   locale names in XPG syntax
38
 
     language[_territory[.codeset]][@modifier]
 
38
     language[_territory][.codeset][@modifier]
39
39
   The result must not be freed; it is statically allocated.
40
40
   The LANGUAGE environment variable does not need to be considered; it is
41
41
   already taken into account by the caller.  */