Rev 3128 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3128 | Rev 3363 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | iconv stdcall (cd, #conv_buf, #in_len, #new_buf, #out_len); |
32 | iconv stdcall (cd, #conv_buf, #in_len, #new_buf, #out_len); |
33 | cd = EAX; |
33 | cd = EAX; |
34 | if (cd!=0) |
34 | if (cd!=0) |
35 | { |
35 | { |
36 | debug("iconv: something is wrong with stdcall iconv()"); |
36 | debug("iconv: something is wrong with stdcall iconv()"); |
37 | debug(itoa(cd)); |
37 | debugi(cd); |
38 | debug("in_len"); |
38 | debug("in_len"); |
39 | debug(itoa(in_len)); |
39 | debugi(in_len); |
40 | debug("out_len"); |
40 | debug("out_len"); |
41 | debug(itoa(out_len)); |
41 | debugi(out_len); |
42 | new_buf = 0; |
42 | new_buf = free(new_buf); |
43 | return 0; |
43 | return 0; |
44 | } |
44 | } |
45 | strcpy(conv_buf, new_buf); |
45 | strcpy(conv_buf, new_buf); |
46 | free(new_buf); |
46 | free(new_buf); |
47 | return conv_buf; |
47 | return conv_buf; |
48 | } |
48 | } |
49 | 49 | ||
- | 50 | ||
- | 51 | char *charsets[] = { " ", "UTF-8", "KOI8-RU", "CP1251", "CP1252", "ISO8859-5", "CP866"}; |
|
- | 52 | int cur_charset; |
|
- | 53 | enum { |
|
- | 54 | CH_NULL, |
|
- | 55 | CH_UTF8, |
|
- | 56 | CH_KOI8, |
|
- | 57 | CH_CP1251, |
|
- | 58 | CH_CP1252, |
|
- | 59 | CH_ISO8859_5, |
|
- | 60 | CH_CP866 |
|
- | 61 | }; |
|
- | 62 | ||
50 | 63 |