Browse CVS Repository
Diff of /malonnote/mnModel.cpp
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 679 |
outbufSize = sizeof(outbuf); |
outbufSize = sizeof(outbuf); |
| 680 |
memset(outbuf, 0, outbufSize); |
memset(outbuf, 0, outbufSize); |
| 681 |
iconv(codeSet, (ICONV_CONST char**)&inbufPtr, (size_t*)&inbufSize, &outbufPtr, (size_t*)&outbufSize); |
iconv(codeSet, (ICONV_CONST char**)&inbufPtr, (size_t*)&inbufSize, &outbufPtr, (size_t*)&outbufSize); |
| 682 |
|
if(inbufSize != 0) { // iconv error |
| 683 |
|
wxMessageBox(wxT("Fail to save, because this memo include KISHU-IZON-MOJI.\nPlease remove KISHU-IZON-MOJI, and try again"), wxT("Fail to save"), wxOK|wxICON_WARNING); |
| 684 |
|
} |
| 685 |
fwrite(outbuf, sizeof(outbuf)-outbufSize, 1, fp); |
fwrite(outbuf, sizeof(outbuf)-outbufSize, 1, fp); |
| 686 |
fclose(fp); |
fclose(fp); |
| 687 |
iconv_close(codeSet); |
iconv_close(codeSet); |
|
|
Legend:
| Removed from v.1.25 |
|
| changed lines |
| |
Added in v.1.26 |
|
|
| |