This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Five patches for std::experimental::filesystem
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Chris Fairles <chris dot fairles at gmail dot com>
- Cc: Christophe Lyon <christophe dot lyon at linaro dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 12 Nov 2016 20:16:22 +0000
- Subject: Re: [PATCH] Five patches for std::experimental::filesystem
- Authentication-results: sourceware.org; auth=none
- References: <20161024165010.GL2922@redhat.com> <20161025153232.GN2922@redhat.com> <CAKdteOZzp5_NYNHQ9wgECZUYT3RDsd37s8ppARpTkWn_ueyz4g@mail.gmail.com> <20161027110139.GY2922@redhat.com> <CAKdteOZXJUgA5=b2O3kN8HXxTOr_x_nUUYp+Lv2WE3NcoxAiRg@mail.gmail.com> <CAKdteOYy-yMiMOMRiETcE4BO5OkoG1ERP5E1eQdyy0HZF7qM=Q@mail.gmail.com> <CAM8vyXesKD7BKjftkwbF6q7w8MhwOV-gZR_WCmW6i9OFjPbAJg@mail.gmail.com>
On 10/11/16 17:29 +0000, Chris Fairles wrote:
"cannot check is file is empty" -> *if
This patch fixes the typo. I haven't looked at the failure yet.
Will commit to trunk shortly.
commit 9882c567342019c9561b44e611af9d42cdf23f3b
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sat Nov 12 20:14:07 2016 +0000
* src/filesystem/ops.cc (is_empty): Fix typo in exception message.
diff --git a/libstdc++-v3/src/filesystem/ops.cc b/libstdc++-v3/src/filesystem/ops.cc
index 8ed0a10..0dcb1b4 100644
--- a/libstdc++-v3/src/filesystem/ops.cc
+++ b/libstdc++-v3/src/filesystem/ops.cc
@@ -1054,7 +1054,7 @@ fs::is_empty(const path& p)
error_code ec;
bool e = is_empty(p, ec);
if (ec)
- _GLIBCXX_THROW_OR_ABORT(filesystem_error("cannot check is file is empty",
+ _GLIBCXX_THROW_OR_ABORT(filesystem_error("cannot check if file is empty",
p, ec));
return e;
}