text encoding fixed

This commit is contained in:
d1str4ught
2025-08-18 02:12:07 +02:00
parent da0a923cde
commit 34000c3306
484 changed files with 5767 additions and 5767 deletions

View File

@@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "locale_service.h"
#include "constants.h"
#include "banword.h"
@@ -87,7 +87,7 @@ int check_name_independent(const char * str)
if (CBanwordManager::instance().CheckString(str, strlen(str)))
return 0;
// 몬스터 이름으로는 만들 수 없다.
// 몬스터 이름으로는 만들 수 없다.
char szTmp[256];
str_lower(str, szTmp, sizeof(szTmp));
@@ -128,12 +128,12 @@ int check_name_gb2312(const char * str)
b1 = str[i++];
b2 = str[i++];
// 중국 간체는 첫번째 바이트 범위가 b0 -> f7 까지고
// 두번째 바이트 범위가 a1 -> fe 다.
// 중국 간체는 첫번째 바이트 범위가 b0 -> f7 까지고
// 두번째 바이트 범위가 a1 -> fe 다.
if (b1 < 0xb0 || b1 > 0xf7 || b2 < 0xa1 || b2 > 0xfe)
return 0;
// 예외가 있다.
// 예외가 있다.
for (j = 0; j < 5; j++)
if (b1 == exceptions[j][0] && b2 == exceptions[j][1])
return 0;
@@ -180,8 +180,8 @@ int check_name_big5(const char * str )
b[0] = b2;
b[1] = b1;
// 중국 번체 ( big5 : 홍콩 )
// 범위는 다음과 같다.
// 중국 번체 ( big5 : 홍콩 )
// 범위는 다음과 같다.
// big5: 0xA140--0xF9D5
// extended big5: 0x40--0x7E and 0xA1--0xFE
@@ -240,15 +240,15 @@ int check_name_euckr(const char * str)
for (tmp = str; *tmp; ++tmp)
{
// 한글이 아니고 빈칸이면 잘못된 것
// 한글이 아니고 빈칸이면 잘못된 것
if (isnhspace(*tmp))
return 0;
// 한글이 아니고 숫자라면 적합하다.
// 한글이 아니고 숫자라면 적합하다.
if (isnhdigit(*tmp))
continue;
// 한글이 아니고 영문이라면 적합하다.
// 한글이 아니고 영문이라면 적합하다.
if (!ishan(*tmp) && isalpha(*tmp))
continue;
@@ -280,15 +280,15 @@ int check_name_latin1(const char * str)
for (tmp = str; *tmp; ++tmp)
{
// 한글이 아니고 빈칸이면 잘못된 것
// 한글이 아니고 빈칸이면 잘못된 것
if (isnhspace(*tmp))
return 0;
// 한글이 아니고 숫자라면 적합하다.
// 한글이 아니고 숫자라면 적합하다.
if (isnhdigit(*tmp))
continue;
// 한글이 아니고 영문이라면 적합하다.
// 한글이 아니고 영문이라면 적합하다.
if (!ishan(*tmp) && isalpha(*tmp))
continue;
@@ -325,7 +325,7 @@ int check_name_alphabet(const char * str)
for (tmp = str; *tmp; ++tmp)
{
// 알파벳과 수자만 허용
// 알파벳과 수자만 허용
if (isdigit(*tmp) || isalpha(*tmp))
continue;
else
@@ -374,7 +374,7 @@ int check_name_sjis(const char *str)
const char *p = str;
const char *e = str + strlen(str); // NULL position
// 일본은 캐릭터 이름길이 16byte 까지
// 일본은 캐릭터 이름길이 16byte 까지
if ( strlen(str) < 2 || strlen(str) > 16 )
return 0;
@@ -387,7 +387,7 @@ int check_name_sjis(const char *str)
return false;
// END_OF_DISABLE_SPECIAL_CHAR_NAMING
// 이문자는 허용되지 않는다.
// 이문자는 허용되지 않는다.
if ((BYTE)p[0]==0x81 && (BYTE)p[1]==0x40) return false;
p += 2;
@@ -395,7 +395,7 @@ int check_name_sjis(const char *str)
}
else
{
// 영문이나 수자는 허용한다.
// 영문이나 수자는 허용한다.
if (isalpha(*p) || isdigit(*p))
{
p += 1;
@@ -942,7 +942,7 @@ static void __LocaleService_Init_Singapore()
check_name = check_name_alphabet;
g_iUseLocale = TRUE;
//exp_table = exp_table_newcibn; 2013 09 11 CYH europe 과 동일하게 간다.
//exp_table = exp_table_newcibn; 2013 09 11 CYH europe 과 동일하게 간다.
}
static void __LocaleService_Init_Vietnam()
@@ -1362,18 +1362,18 @@ bool LC_IsEurope()
case LC_DENMARK:
case LC_BULGARIA:
case LC_CROATIA:
case LC_MEXICO: // 남미지만 GF에서 서비스 하므로 여기 넣음
case LC_ARABIA: // 중동이지만 GF에서 서비스 하므로 여기 넣음
case LC_MEXICO: // 남미지만 GF에서 서비스 하므로 여기 넣음
case LC_ARABIA: // 중동이지만 GF에서 서비스 하므로 여기 넣음
case LC_CZECH:
case LC_ROMANIA:
case LC_HUNGARY:
case LC_NETHERLANDS:
case LC_USA:
case LC_WE_KOREA: // 한국이지만 UK 버전 기반이므로 여기 넣음
case LC_TAIWAN: // 대만이지만 WE_KOREA 버전 기반이므로 여기 넣음
case LC_JAPAN: // 일본이지만 WE(World Edition -_-) 버전이므로 여기 넣음
case LC_WE_KOREA: // 한국이지만 UK 버전 기반이므로 여기 넣음
case LC_TAIWAN: // 대만이지만 WE_KOREA 버전 기반이므로 여기 넣음
case LC_JAPAN: // 일본이지만 WE(World Edition -_-) 버전이므로 여기 넣음
case LC_NEWCIBN:
case LC_CANADA: // 캐나다 GF에서 서비스 시작
case LC_CANADA: // 캐나다 GF에서 서비스 시작
case LC_ENGLISH: //Fix (Kinda)
return true;
}