Skip to content

Commit

Permalink
Merge branch 'master' into dayweek_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Jul 17, 2023
2 parents 424245e + b717bbb commit 38ef514
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Next
- Enhanced Dynamic and Differencing VHD support #4273 (maxpat78)
- Imported IBM Music Feature Card support from DOSBox Staging. (Allofich)
- Fix day of week detection (INT 21h 0x2Ah). (maron2000)
- Refine KEYB and CHCP command (maron2000)
2023.05.01
- IMGMAKE will choose LBA partition types for 2GB or larger disk
images, but the user can also use -chs and -lba options to override
Expand Down
11 changes: 9 additions & 2 deletions src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7741,6 +7741,8 @@ class TITLE : public Program {
}
};

bool CodePageGuestToHostUTF8(char *d/*CROSS_LEN*/,const char *s/*CROSS_LEN*/);

void TITLE::Run()
{
// Hack To allow long commandlines
Expand All @@ -7751,8 +7753,13 @@ void TITLE::Run()
PrintUsage();
return;
}
char *args=(char *)cmd->GetRawCmdline().c_str();
dosbox_title=trim(args);
char *args=trim((char *)cmd->GetRawCmdline().c_str());
char title[4096];
if(CodePageGuestToHostUTF8(title, args)) {
dosbox_title=title;
} else {
dosbox_title=args;
}
SetVal("dosbox", "title", dosbox_title);
GFX_SetTitle(-1,-1,-1,false);
}
Expand Down

0 comments on commit 38ef514

Please sign in to comment.