File: system_encoding.c

package info (click to toggle)
darcs 2.12.4-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,748 kB
  • sloc: haskell: 42,936; sh: 11,086; ansic: 837; perl: 129; makefile: 8
file content (10 lines) | stat: -rw-r--r-- 160 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#include "system_encoding.h"

char* get_system_encoding() {
#ifdef WIN32
  return "utf8";
#else
  setlocale(LC_ALL,"");
  return nl_langinfo(CODESET);
#endif
}