亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? localcharset.c

?? linux 下的超級終端 minicom
?? C
字號:
/* Determine a canonical name for the current locale's character encoding.   Copyright (C) 2000-2001 Free Software Foundation, Inc.   This program is free software; you can redistribute it and/or modify it   under the terms of the GNU Library General Public License as published   by the Free Software Foundation; either version 2, or (at your option)   any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   Library General Public License for more details.   You should have received a copy of the GNU Library General Public   License along with this program; if not, write to the Free Software   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,   USA.  *//* Written by Bruno Haible <haible@clisp.cons.org>.  */#ifdef HAVE_CONFIG_H# include <config.h>#endif#if HAVE_STDDEF_H# include <stddef.h>#endif#include <stdio.h>#if HAVE_STRING_H# include <string.h>#else# include <strings.h>#endif#if HAVE_STDLIB_H# include <stdlib.h>#endif#if defined _WIN32 || defined __WIN32__# undef WIN32   /* avoid warning on mingw32 */# define WIN32#endif#ifndef WIN32# if HAVE_LANGINFO_CODESET#  include <langinfo.h># else#  if HAVE_SETLOCALE#   include <locale.h>#  endif# endif#else /* WIN32 */# define WIN32_LEAN_AND_MEAN# include <windows.h>#endif#ifndef DIRECTORY_SEPARATOR# define DIRECTORY_SEPARATOR '/'#endif#ifndef ISSLASH# define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR)#endif/* The following static variable is declared 'volatile' to avoid a   possible multithread problem in the function get_charset_aliases. If we   are running in a threaded environment, and if two threads initialize   'charset_aliases' simultaneously, both will produce the same value,   and everything will be ok if the two assignments to 'charset_aliases'   are atomic. But I don't know what will happen if the two assignments mix.  */#if __STDC__ != 1# define volatile /* empty */#endif/* Pointer to the contents of the charset.alias file, if it has already been   read, else NULL.  Its format is:   ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0'  */static const char * volatile charset_aliases;/* Return a pointer to the contents of the charset.alias file.  */static const char *get_charset_aliases (){  const char *cp;  cp = charset_aliases;  if (cp == NULL)    {#ifndef WIN32      FILE *fp;      const char *dir = LIBDIR;      const char *base = "charset.alias";      char *file_name;      /* Concatenate dir and base into freshly allocated file_name.  */      {	size_t dir_len = strlen (dir);	size_t base_len = strlen (base);	int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1]));	file_name = (char *) malloc (dir_len + add_slash + base_len + 1);	if (file_name != NULL)	  {	    memcpy (file_name, dir, dir_len);	    if (add_slash)	      file_name[dir_len] = DIRECTORY_SEPARATOR;	    memcpy (file_name + dir_len + add_slash, base, base_len + 1);	  }      }      if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL)	/* Out of memory or file not found, treat it as empty.  */	cp = "";      else	{	  /* Parse the file's contents.  */	  int c;	  char buf1[50+1];	  char buf2[50+1];	  char *res_ptr = NULL;	  size_t res_size = 0;	  size_t l1, l2;	  for (;;)	    {	      c = getc (fp);	      if (c == EOF)		break;	      if (c == '\n' || c == ' ' || c == '\t')		continue;	      if (c == '#')		{		  /* Skip comment, to end of line.  */		  do		    c = getc (fp);		  while (!(c == EOF || c == '\n'));		  if (c == EOF)		    break;		  continue;		}	      ungetc (c, fp);	      if (fscanf(fp, "%50s %50s", buf1, buf2) < 2)		break;	      l1 = strlen (buf1);	      l2 = strlen (buf2);	      if (res_size == 0)		{		  res_size = l1 + 1 + l2 + 1;		  res_ptr = malloc (res_size + 1);		}	      else		{		  res_size += l1 + 1 + l2 + 1;		  res_ptr = realloc (res_ptr, res_size + 1);		}	      if (res_ptr == NULL)		{		  /* Out of memory. */		  res_size = 0;		  break;		}	      strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);	      strcpy (res_ptr + res_size - (l2 + 1), buf2);	    }	  fclose (fp);	  if (res_size == 0)	    cp = "";	  else	    {	      *(res_ptr + res_size) = '\0';	      cp = res_ptr;	    }	}      if (file_name != NULL)	free (file_name);#else /* WIN32 */      /* To avoid the troubles of installing a separate file in the same	 directory as the DLL and of retrieving the DLL's directory at	 runtime, simply inline the aliases here.  */      cp = "CP936" "\0" "GBK" "\0"	   "CP1361" "\0" "JOHAB" "\0";#endif      charset_aliases = cp;    }  return cp;}/* Determine the current locale's character encoding, and canonicalize it   into one of the canonical names listed in config.charset.   The result must not be freed; it is statically allocated.   If the canonical name cannot be determined, the result is a non-canonical   name.  */#ifdef STATICSTATIC#endifconst char *locale_charset (){  const char *codeset;  const char *aliases;#ifndef WIN32# if HAVE_LANGINFO_CODESET  /* Most systems support nl_langinfo (CODESET) nowadays.  */  codeset = nl_langinfo (CODESET);# else  /* On old systems which lack it, use setlocale or getenv.  */  const char *locale = NULL;  /* But most old systems don't have a complete set of locales.  Some     (like SunOS 4 or DJGPP) have only the C locale.  Therefore we don't     use setlocale here; it would return "C" when it doesn't support the     locale name the user has set.  */#  if HAVE_SETLOCALE && 0  locale = setlocale (LC_CTYPE, NULL);#  endif  if (locale == NULL || locale[0] == '\0')    {      locale = getenv ("LC_ALL");      if (locale == NULL || locale[0] == '\0')	{	  locale = getenv ("LC_CTYPE");	  if (locale == NULL || locale[0] == '\0')	    locale = getenv ("LANG");	}    }  /* On some old systems, one used to set locale = "iso8859_1". On others,     you set it to "language_COUNTRY.charset". In any case, we resolve it     through the charset.alias file.  */  codeset = locale;# endif#else /* WIN32 */  static char buf[2 + 10 + 1];  /* Win32 has a function returning the locale's codepage as a number.  */  sprintf (buf, "CP%u", GetACP ());  codeset = buf;#endif  if (codeset == NULL)    /* The canonical name cannot be determined.  */    codeset = "";  /* Resolve alias. */  for (aliases = get_charset_aliases ();       *aliases != '\0';       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)    if (strcmp (codeset, aliases) == 0	|| (aliases[0] == '*' && aliases[1] == '\0'))      {	codeset = aliases + strlen (aliases) + 1;	break;      }  return codeset;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品福利影院| 精品噜噜噜噜久久久久久久久试看 | 色av综合在线| 欧美日精品一区视频| 日韩小视频在线观看专区| 欧美精品久久99久久在免费线 | 欧美一区二区三区免费观看视频 | 亚洲成人第一页| 天天色 色综合| 国产在线精品一区在线观看麻豆| 蜜桃av噜噜一区| 国产成人在线视频网站| 91片在线免费观看| 欧美肥妇bbw| 精品久久免费看| 亚洲人吸女人奶水| 视频一区二区三区在线| 国产毛片精品国产一区二区三区| 国产精品小仙女| 色噜噜狠狠色综合中国| 欧美撒尿777hd撒尿| 日韩一区中文字幕| 琪琪一区二区三区| 日韩视频中午一区| 国产精品久线在线观看| 亚洲成人黄色影院| 风间由美中文字幕在线看视频国产欧美| 国产mv日韩mv欧美| 在线不卡欧美精品一区二区三区| 国产视频一区二区在线| 日韩电影一区二区三区| 99久久久精品| 国产精品久久久久久妇女6080| 日本sm残虐另类| 欧美一a一片一级一片| 亚洲国产成人一区二区三区| 日韩电影在线一区| 欧美福利一区二区| 亚洲成人动漫在线免费观看| 成人app下载| 中文字幕日本乱码精品影院| 国产成人免费av在线| 精品国产百合女同互慰| 日韩高清不卡一区二区三区| 欧美三日本三级三级在线播放| 亚洲一级二级三级在线免费观看| 97se亚洲国产综合在线| 亚洲国产精品尤物yw在线观看| 91在线国产观看| 亚洲一区二区欧美日韩| 在线亚洲一区观看| 美女高潮久久久| 欧美成人bangbros| 经典三级视频一区| 国产精品久久看| 国产高清成人在线| 中文字幕一区二区在线观看 | 国产精品自在在线| 欧美在线观看视频一区二区| 中文无字幕一区二区三区| 国产综合一区二区| 国产色91在线| 国产成人h网站| 国产精品人妖ts系列视频| 成人午夜激情影院| 亚洲免费在线视频一区 二区| 91视频免费看| 日韩vs国产vs欧美| 精品99999| 欧美日韩一级黄| 久久精品国产亚洲a| 日韩精品一区二区三区视频播放 | 午夜精品久久久久久| 欧洲一区二区av| 麻豆精品新av中文字幕| 亚洲欧洲精品成人久久奇米网| 91久久国产最好的精华液| 亚洲精品国产一区二区三区四区在线| 在线一区二区三区做爰视频网站| 午夜精品视频在线观看| 欧美日韩国产不卡| 久久国产视频网| 亚洲6080在线| 亚洲视频中文字幕| 欧美va日韩va| 欧美一区二区免费| 在线免费观看一区| 乱一区二区av| 亚洲国产精品久久人人爱| 国产日产精品一区| 欧美久久一区二区| 欧美高清性hdvideosex| 国产精品系列在线播放| 麻豆精品视频在线观看视频| 亚洲在线视频网站| 久久综合国产精品| 精品欧美一区二区在线观看| 99久久久国产精品免费蜜臀| 久久成人免费网| 秋霞av亚洲一区二区三| 亚洲夂夂婷婷色拍ww47| 亚洲成av人片在www色猫咪| 一区二区三区在线视频观看| 亚洲一区二区三区中文字幕在线| 亚洲天天做日日做天天谢日日欢| 欧美日韩精品一区二区三区四区 | 亚洲视频在线观看三级| 国产日产欧美一区二区三区| 国产精品美女久久久久av爽李琼| 日本一区二区免费在线观看视频 | 亚瑟在线精品视频| 日韩电影在线观看电影| 美女免费视频一区二区| 国产精品白丝av| 国产精品夜夜嗨| 奇米四色…亚洲| 国产精品亚洲成人| heyzo一本久久综合| 欧美日韩视频在线一区二区| 欧美xfplay| 日韩成人精品在线观看| 精品在线播放午夜| 91国偷自产一区二区使用方法| 色94色欧美sute亚洲线路一久| 日韩欧美国产综合| 综合色天天鬼久久鬼色| 国产在线精品免费av| 97精品国产露脸对白| 久久人人超碰精品| 亚洲国产成人精品视频| 国产福利电影一区二区三区| 欧美猛男gaygay网站| 亚洲欧洲av一区二区三区久久| 一区二区三区视频在线观看| 久久综合综合久久综合| 大尺度一区二区| 91蜜桃传媒精品久久久一区二区| 欧美日韩国产中文| 午夜精品爽啪视频| 久久综合狠狠综合久久综合88| 一区二区三区在线视频播放| 岛国av在线一区| 欧美v国产在线一区二区三区| 成人高清免费观看| 日韩欧美国产不卡| 奇米综合一区二区三区精品视频| 色婷婷国产精品| 视频在线在亚洲| 91香蕉视频污| 一区二区三区精密机械公司| 欧美怡红院视频| 日本三级韩国三级欧美三级| 色先锋资源久久综合| 欧美国产一区二区| 91欧美激情一区二区三区成人| 日韩精品91亚洲二区在线观看| 欧美aaa在线| 久久精品一区二区三区av| 波多野结衣视频一区| 亚洲三级理论片| 欧美日韩免费视频| 国模冰冰炮一区二区| 亚洲福利一二三区| 亚洲男同1069视频| 久久九九久精品国产免费直播| 欧美亚洲综合久久| 在线亚洲人成电影网站色www| 精品亚洲国产成人av制服丝袜| 一区二区三区中文字幕精品精品 | 床上的激情91.| 日韩精品一二三| 亚洲五码中文字幕| 婷婷开心激情综合| 日韩福利视频网| 久久综合久久鬼色中文字| 日本精品裸体写真集在线观看| 国产精品一二二区| 国产自产视频一区二区三区| 五月激情综合婷婷| 亚洲欧美一区二区三区孕妇| 久久精品亚洲麻豆av一区二区| 91精品在线免费观看| 色妹子一区二区| 91一区二区在线观看| 国产精品99久| 91片黄在线观看| 在线观看亚洲成人| 欧美日韩免费观看一区二区三区| 欧美精品免费视频| 3d动漫精品啪啪| 国产日韩欧美不卡在线| 欧美电影一区二区| 欧美一区二区三区免费视频 | 91在线免费播放| 精品久久久久香蕉网| 国产精品久久久久久久久动漫| 亚洲午夜影视影院在线观看| 久久成人综合网| www.日韩精品| 日韩美女视频在线|