Skip to content

Commit

Permalink
Continue 6185
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Sep 9, 2023
1 parent 6527c88 commit 474f321
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------------------------------------------------------------------
drkns 2023-09-09 09:31:11+01:00 - build 6187

1. Continue 6185.

--------------------------------------------------------------------------------
drkns 2023-09-08 18:07:06+01:00 - build 6186

Expand Down
2 changes: 1 addition & 1 deletion far/fileedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ bool FileEditor::SetCodePageEx(uintptr_t cp)
}
else if (cp == CP_REDETECT)
{
const os::fs::file EditFile(strFileName, FILE_READ_DATA, os::fs::file_share_read, nullptr, OPEN_EXISTING);
const os::fs::file EditFile(strFullFileName, FILE_READ_DATA, os::fs::file_share_read, nullptr, OPEN_EXISTING);
const auto DefaultCodepage = GetDefaultCodePage();
cp = EditFile? GetFileCodepage(EditFile, DefaultCodepage) : DefaultCodepage;
}
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6186
6187

0 comments on commit 474f321

Please sign in to comment.