localcharset.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 it
  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)
  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 GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
  15. USA. */
  16. #ifndef _LOCALCHARSET_H
  17. #define _LOCALCHARSET_H
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. /* Determine the current locale's character encoding, and canonicalize it
  22. into one of the canonical names listed in config.charset.
  23. The result must not be freed; it is statically allocated.
  24. If the canonical name cannot be determined, the result is a non-canonical
  25. name. */
  26. //extern const char * locale_charset (void);
  27. #ifdef __cplusplus
  28. inline
  29. #endif
  30. const char * locale_charset (void) {
  31. return "utf-8";
  32. }
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* _LOCALCHARSET_H */