From 05005d554cf25b66a971c79384e85885b5293d50 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 14 Apr 2007 12:12:27 +0000 Subject: Fixed TXT char creation blocking characters with nonstandard names git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10257 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/common/strlib.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 9ed31c5e1..d6db2ecfe 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,8 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2007/04/15 + * Fixed TXT char creation blocking characters with nonstandard names 2007/04/13 * Committing some accumulated stuff [ultramage] - makefile typo, maps_athena typo, svn:eol-style native for some files diff --git a/src/common/strlib.c b/src/common/strlib.c index 9cac2ca4f..977dc8306 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -114,7 +114,7 @@ int remove_control_chars(char* str) int change = 0; for(i = 0; str[i]; i++) { - if (str[i] < 32) { + if (ISCNTRL(str[i])) { str[i] = '_'; change = 1; } -- cgit v1.2.3-70-g09d2