Skip to content

Commit

Permalink
#4241: Poco::FileInputStream broken in 1.12.5 and 1.11.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Nov 2, 2023
1 parent c6f27f6 commit fe5742f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
This is the changelog file for the POCO C++ Libraries.

Release 1.11.8p1 (2023-11-02)
=============================

- GH #4241: Poco::FileInputStream broken in 1.12.5 and 1.11.8


Release 1.11.8 (2023-10-18)
===========================

Expand Down
4 changes: 2 additions & 2 deletions DLLVersion.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "winres.h"

#define POCO_VERSION 1,11,8,0
#define POCO_VERSION_STR "1.11.8"
#define POCO_VERSION 1,11,8,1
#define POCO_VERSION_STR "1.11.8p1"

VS_VERSION_INFO VERSIONINFO
FILEVERSION POCO_VERSION
Expand Down
2 changes: 1 addition & 1 deletion Foundation/include/Poco/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
// Ax: alpha releases
// Bx: beta releases
//
#define POCO_VERSION 0x010B0800
#define POCO_VERSION 0x010B0801


#endif // Foundation_Version_INCLUDED
10 changes: 7 additions & 3 deletions Foundation/src/FileStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ FileIOS::~FileIOS()
void FileIOS::open(const std::string& path, std::ios::openmode mode)
{
clear();
if (!(mode & std::ios::in) && !(mode & std::ios::out))
{
mode |= _defaultMode;
}
_buf.open(path, mode);
}

Expand Down Expand Up @@ -73,7 +77,7 @@ FileInputStream::FileInputStream():


FileInputStream::FileInputStream(const std::string& path, std::ios::openmode mode):
FileIOS(mode | std::ios::in),
FileIOS(std::ios::in),
std::istream(&_buf)
{
open(path, mode | std::ios::in);
Expand All @@ -93,7 +97,7 @@ FileOutputStream::FileOutputStream():


FileOutputStream::FileOutputStream(const std::string& path, std::ios::openmode mode):
FileIOS(mode | std::ios::out),
FileIOS(std::ios::out),
std::ostream(&_buf)
{
open(path, mode | std::ios::out);
Expand All @@ -113,7 +117,7 @@ FileStream::FileStream():


FileStream::FileStream(const std::string& path, std::ios::openmode mode):
FileIOS(mode),
FileIOS(std::ios::in | std::ios::out),
std::iostream(&_buf)
{
open(path, mode);
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.8
1.11.8p1
7 changes: 7 additions & 0 deletions doc/99100-ReleaseNotes.page
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
POCO C++ Libraries Release Notes
AAAIntroduction

!!!Release 1.11.8p1

!! Summary of Changes

- GH #4241: Poco::FileInputStream broken in 1.12.5 and 1.11.8


!!!Release 1.11.8

!!Summary of Changes
Expand Down

0 comments on commit fe5742f

Please sign in to comment.