Fix for latinXX codepages, EditExportText fix.
This commit is contained in:
parent
dd6801476f
commit
e0d61b7139
@ -12,6 +12,9 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.4.5, May XX 2000
|
Notes for GoldED+ 1.1.4.5, May XX 2000
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
- EditExportText now saves whole the message to file, this is more
|
||||||
|
predictable behaviour than before.
|
||||||
|
|
||||||
- Fixed incorrect lines chain after insertion from file/clipboard.
|
- Fixed incorrect lines chain after insertion from file/clipboard.
|
||||||
|
|
||||||
- Function that builds full pathname bit adjusted for non-UNIX
|
- Function that builds full pathname bit adjusted for non-UNIX
|
||||||
|
@ -163,9 +163,10 @@ char* mime_header_encode(char* dest, const char* source, GMsg* msg) {
|
|||||||
if(not inmime) {
|
if(not inmime) {
|
||||||
if(msg->charset) {
|
if(msg->charset) {
|
||||||
bp = stpcpy(bp, "=?");
|
bp = stpcpy(bp, "=?");
|
||||||
if(strneql(msg->charset, "latin-", 6)) {
|
if(strneql(msg->charset, "latin", 5)) {
|
||||||
static const char *isono[] = { "15", "1", "2", "3", "4", "9", "10", "13", "14", "15" };
|
static const char *isono[] = { "15", "1", "2", "3", "4", "9", "10", "13", "14", "15" };
|
||||||
int chsno = atoi(msg->charset+6);
|
int chsno = atoi(msg->charset+5);
|
||||||
|
if(chsno < 0) chsno = -chsno; // support for both latin-1 and latin1
|
||||||
chsno = chsno > sizeof(isono)/sizeof(const char *) ? 0 : chsno;
|
chsno = chsno > sizeof(isono)/sizeof(const char *) ? 0 : chsno;
|
||||||
bp = strxmerge(bp, 12, "iso-8859-", isono[chsno]);
|
bp = strxmerge(bp, 12, "iso-8859-", isono[chsno]);
|
||||||
}
|
}
|
||||||
|
@ -1227,8 +1227,8 @@ void IEclass::editexport(Line* __exportline, int __endat) {
|
|||||||
fputc('\n', _fp);
|
fputc('\n', _fp);
|
||||||
|
|
||||||
while((__endat ? __exportline != currline : 1) and __exportline) {
|
while((__endat ? __exportline != currline : 1) and __exportline) {
|
||||||
fputs(__exportline->txt.c_str(), _fp);
|
fwrite(__exportline->txt.c_str(), 1, __exportline->txt.length(), _fp);
|
||||||
if(__exportline->txt.find('\n') != __exportline->txt.npos)
|
if(__exportline->txt.find('\n') == __exportline->txt.npos)
|
||||||
fputc('\n', _fp);
|
fputc('\n', _fp);
|
||||||
__exportline = __exportline->next;
|
__exportline = __exportline->next;
|
||||||
}
|
}
|
||||||
@ -1270,15 +1270,12 @@ void IEclass::ExportText() {
|
|||||||
GFTRK("EditExportText");
|
GFTRK("EditExportText");
|
||||||
|
|
||||||
int endat = NO;
|
int endat = NO;
|
||||||
Line* exportline = Edit__pastebuf;
|
// Line* exportline = findanchor();
|
||||||
|
|
||||||
if(not exportline) {
|
// if(exportline)
|
||||||
exportline = findanchor();
|
// endat = YES;
|
||||||
if(exportline)
|
// else
|
||||||
endat = YES;
|
Line* exportline = findfirstline();
|
||||||
else
|
|
||||||
exportline = findfirstline();
|
|
||||||
}
|
|
||||||
|
|
||||||
editexport(exportline, endat);
|
editexport(exportline, endat);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user