Skip to content

Commit

Permalink
- Fix iconv errors
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12113 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 19, 2012
1 parent 67c7e9d commit 4eed977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/BaseModelica_Lexer.g
Expand Up @@ -301,7 +301,7 @@ STRING : '"' STRING_GUTS '"'
char *res = 0;
if (*text->chars) {
res = SystemImpl__iconv((const char*)text->chars,ModelicaParser_encoding,"UTF-8",0);
if (!res) {
if (!*res) {
const char *strs[2];
signed char *buf = (signed char*) strdup((char*)text->chars);
int len = strlen((const char*)buf), i;
Expand Down

0 comments on commit 4eed977

Please sign in to comment.