summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2007-06-28 09:54:11 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2007-06-28 09:54:11 +0000
commit0424450735ba3c00395876c28a7b58781d5c9b4a (patch)
tree3ab6795e40e95a472fe0a881a14a38d84ab0c8f7
parentee707424a310ad529d0cbf764ec5ed18e8b7dde8 (diff)
downloadlibrcc-0424450735ba3c00395876c28a7b58781d5c9b4a.tar.gz
librcc-0424450735ba3c00395876c28a7b58781d5c9b4a.tar.bz2
librcc-0424450735ba3c00395876c28a7b58781d5c9b4a.tar.xz
librcc-0424450735ba3c00395876c28a7b58781d5c9b4a.zip
Fixes
- Suppress messages in LibGUESS engine - Swedish language is added to sample configuration
-rw-r--r--engines/libguess.c1
-rw-r--r--examples/rcc.xml12
2 files changed, 12 insertions, 1 deletions
diff --git a/engines/libguess.c b/engines/libguess.c
index 4bf1dee..99f3755 100644
--- a/engines/libguess.c
+++ b/engines/libguess.c
@@ -28,7 +28,6 @@ rcc_autocharset_id guessDetect(rcc_engine_context ctx, const char *buf, int len)
if (!len) len = strlen(buf);
res = guess_cn(buf, len);
if (!res) res = guess_tw(buf, len);
- printf("%s\n",res?res:"null");
}
} else
res = NULL;
diff --git a/examples/rcc.xml b/examples/rcc.xml
index 51198da..2533649 100644
--- a/examples/rcc.xml
+++ b/examples/rcc.xml
@@ -230,6 +230,18 @@
<Engine>western</Engine>
</Engines>
</Language>
+ <Language name="sv">
+ <FullName>Swedish</FullName>
+ <FullName locale="ru">Шведский</FullName>
+ <Charsets>
+ <Charset>ISO8859-1</Charset>
+ <Charset>UTF-8</Charset>
+ <Charset>CP1252</Charset>
+ </Charsets>
+ <Engines>
+ <Engine>western</Engine>
+ </Engines>
+ </Language>
</Languages>
<Options>
<Option name="LEARNING_MODE">