Skip to content

Commit cd6805e

Browse files
committed
Version bump release v1.5.12
Took 30 minutes
1 parent 6cc60fb commit cd6805e

File tree

3 files changed

+25
-22
lines changed

3 files changed

+25
-22
lines changed

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Build Status](https://api.cirrus-ci.com/github/gulrak/filesystem.svg?branch=master)](https://cirrus-ci.com/github/gulrak/filesystem)
66
[![Build Status](https://cloud.drone.io/api/badges/gulrak/filesystem/status.svg?ref=refs/heads/master)](https://cloud.drone.io/gulrak/filesystem)
77
[![Coverage Status](https://coveralls.io/repos/github/gulrak/filesystem/badge.svg?branch=master)](https://coveralls.io/github/gulrak/filesystem?branch=master)
8-
[![Latest Release Tag](https://img.shields.io/github/tag/gulrak/filesystem.svg)](https://github.com/gulrak/filesystem/tree/v1.5.10)
8+
[![Latest Release Tag](https://img.shields.io/github/tag/gulrak/filesystem.svg)](https://github.com/gulrak/filesystem/tree/v1.5.12)
99

1010
- [Filesystem](#filesystem)
1111
- [Motivation](#motivation)
@@ -39,8 +39,8 @@
3939
This is a header-only single-file `std::filesystem` compatible helper library,
4040
based on the C++17 and C++20 specs, but implemented for C++11, C++14, C++17 or C++20
4141
(tightly following the C++17 standard with very few documented exceptions). It is currently tested on
42-
macOS 10.12/10.14/10.15/11.6, Windows 10, Ubuntu 18.04, Ubuntu 20.04, CentOS 7, CentOS 8, FreeBSD 12
43-
and Alpine ARM/ARM64 Linux but should work on other systems too, as long as you have
42+
macOS 10.12/10.14/10.15/11.6, Windows 10, Ubuntu 18.04, Ubuntu 20.04, CentOS 7, CentOS 8, FreeBSD 12,
43+
Alpine ARM/ARM64 Linux and Solaris 10 but should work on other systems too, as long as you have
4444
at least a C++11 compatible compiler. It should work with Android NDK, Emscripten and I even
4545
had reports of it being used on iOS (within sandboxing constraints) and with v1.5.6 there
4646
is experimental support for QNX. The support of Android NDK, Emscripten and QNX is not
@@ -87,15 +87,15 @@ to do with Haskell**, sorry for the name clash).
8787
## Platforms
8888

8989
`ghc::filesystem` is developed on macOS but CI tested on macOS, Windows,
90-
various Linux Distributions and FreeBSD. It should work on any of these with a C++11-capable
91-
compiler. Also there are some checks to hopefully better work on Android, but
92-
as I currently don't test with the Android NDK, I wouldn't call it a
93-
supported platform yet, same is valid for using it with Emscripten. It is now
94-
part of the detected platforms, I fixed the obvious issues and ran some tests with
95-
it, so it should be fine. All in all, I don't see it replacing `std::filesystem`
96-
where full C++17 or C++20 is available, it doesn't try to be a "better"
97-
`std::filesystem`, just an almost drop-in if you can't use it (with the exception
98-
of the UTF-8 preference).
90+
various Linux Distributions, FreeBSD and starting with v1.5.12 on Solaris.
91+
It should work on any of these with a C++11-capable compiler. Also there are some
92+
checks to hopefully better work on Android, but as I currently don't test with the
93+
Android NDK, I wouldn't call it a supported platform yet, same is valid for using
94+
it with Emscripten. It is now part of the detected platforms, I fixed the obvious
95+
issues and ran some tests with it, so it should be fine. All in all, I don't see it
96+
replacing `std::filesystem` where full C++17 or C++20 is available, it doesn't try
97+
to be a "better" `std::filesystem`, just an almost drop-in if you can't use it
98+
(with the exception of the UTF-8 preference).
9999

100100
:information_source: **Important:** _This implementation is following the ["UTF-8 Everywhere" philosophy](https://utf8everywhere.org/) in that all
101101
`std::string` instances will be interpreted the same as `std::u8string` encoding
@@ -109,6 +109,7 @@ Unit tests are currently run with:
109109
* Linux (Ubuntu): GCC (5.5, 6.5, 7.4, 8.3, 9.2), Clang (5.0, 6.0, 7.1, 8.0, 9.0)
110110
* Linux (Alpine ARM/ARM64): GCC 9.2.0
111111
* FreeBSD: Clang 8.0
112+
* Solaris: GCC 5.5
112113

113114

114115
## Tests
@@ -148,8 +149,8 @@ in the standard, and there might be issues in these implementations too.
148149

149150
### Downloads
150151

151-
The latest release version is [v1.5.10](https://github.com/gulrak/filesystem/tree/v1.5.10) and
152-
source archives can be found [here](https://github.com/gulrak/filesystem/releases/tag/v1.5.10).
152+
The latest release version is [v1.5.12](https://github.com/gulrak/filesystem/tree/v1.5.12) and
153+
source archives can be found [here](https://github.com/gulrak/filesystem/releases/tag/v1.5.12).
153154

154155
The latest pre-native-backend version is [v1.4.0](https://github.com/gulrak/filesystem/tree/v1.4.0) and
155156
source archives can be found [here](https://github.com/gulrak/filesystem/releases/tag/v1.4.0).
@@ -583,11 +584,13 @@ to the expected behavior.
583584
584585
## Release Notes
585586
586-
### v1.5.11 (WIP)
587+
### [v1.5.12](https://github.com/gulrak/filesystem/releases/tag/v1.5.12)
587588
588589
* Fix for [#142](https://github.com/gulrak/filesystem/issues/142), removed need
589590
for `GHC_NO_DIRENT_D_TYPE` on systems that don't support `dirent::d_type` and
590591
fixed build configuration and tests to support Solaris as new platform.
592+
* Pull request [#138](https://github.com/gulrak/filesystem/pull/138), if the
593+
platform uses the POSIX backend and has no `PATH_MAX`, one is defined.
591594
* Pull request [#137](https://github.com/gulrak/filesystem/pull/137), update
592595
of Catch2 to version v2.13.7
593596
* Added macOS 11 to the automatically tested platforms.

include/ghc/filesystem.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,19 +279,19 @@
279279
// * if this->has_root_directory() and !p.has_root_directory() return -1
280280
// * if !this->has_root_directory() and p.has_root_directory() return -1
281281
// * else result of element wise comparison of path iteration where first comparison is != 0 or 0
282-
// if all comparisons are 0 (on Windows this implementation does case insensitive root_name()
282+
// if all comparisons are 0 (on Windows this implementation does case-insensitive root_name()
283283
// comparison)
284284
#define LWG_2936_BEHAVIOUR
285285
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
286286
// LWG #2937 enforces that fs::equivalent emits an error, if !fs::exists(p1)||!exists(p2)
287287
#define LWG_2937_BEHAVIOUR
288288
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
289-
// UTF8-Everywhere is the original behaviour of ghc::filesystem. But since v1.5 the windows
289+
// UTF8-Everywhere is the original behaviour of ghc::filesystem. But since v1.5 the Windows
290290
// version defaults to std::wstring storage backend. Still all std::string will be interpreted
291-
// as UTF-8 encoded. With this define you can enfoce the old behavior on Windows, using
291+
// as UTF-8 encoded. With this define you can enforce the old behavior on Windows, using
292292
// std::string as backend and for fs::path::native() and char for fs::path::c_str(). This
293-
// needs more conversions so it is (an was before v1.5) slower, bot might help keeping source
294-
// homogeneous in a multi platform project.
293+
// needs more conversions, so it is (and was before v1.5) slower, bot might help keeping source
294+
// homogeneous in a multi-platform project.
295295
// #define GHC_WIN_DISABLE_WSTRING_STORAGE_TYPE
296296
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
297297
// Raise errors/exceptions when invalid unicode codepoints or UTF-8 sequences are found,
@@ -306,7 +306,7 @@
306306
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
307307

308308
// ghc::filesystem version in decimal (major * 10000 + minor * 100 + patch)
309-
#define GHC_FILESYSTEM_VERSION 10511L
309+
#define GHC_FILESYSTEM_VERSION 10512L
310310

311311
#if !defined(GHC_WITH_EXCEPTIONS) && (defined(__EXCEPTIONS) || defined(__cpp_exceptions) || defined(_CPPUNWIND))
312312
#define GHC_WITH_EXCEPTIONS

test/multi1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <ghc/filesystem.hpp>
2828
namespace fs = ghc::filesystem;
2929

30-
// This test and the one in multi2.cpp doesn't actualy test relevant functionality,
30+
// This test and the one in multi2.cpp doesn't actually test relevant functionality,
3131
// it is just used to check that it is possible to include filesystem.h in multiple
3232
// source files.
3333
TEST_CASE("Multifile-test 1", "[multi]")

0 commit comments

Comments
 (0)