localcharset.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Determine a canonical name for the current locale's character encoding.
  2. Copyright (C) 2000-2003 Free Software Foundation, Inc.
  3. This file is part of the GNU CHARSET Library.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License along
  13. with this program; if not, write to the Free Software Foundation,
  14. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
  15. #ifndef _LOCALCHARSET_H
  16. #define _LOCALCHARSET_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /* Determine the current locale's character encoding, and canonicalize it
  21. into one of the canonical names listed in config.charset.
  22. The result must not be freed; it is statically allocated.
  23. If the canonical name cannot be determined, the result is a non-canonical
  24. name. */
  25. extern const char * locale_charset (void);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /* _LOCALCHARSET_H */