On 03/01/19 20:38 +0000, Jonathan Wakely wrote:
There are a number of UTF-8 characters in comments which add no value
and can be replaced with ASCII equivalents, or removed entirely for the
section sign (U+00A7).
PR libstdc++/88607
* include/bits/forward_list.h: Replace UTF-8 "ligature fi" character.
* include/debug/forward_list: Likewise.
* include/experimental/bits/shared_ptr.h: Remove UTF-8 "section sign"
character.
* include/experimental/chrono: Likewise.
* include/experimental/functional: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/parallel/workstealing.h: Replace UTF-8 "en dash" character.
* include/parallel/multiseq_selection.h: Likewise.
This replaces some more non-ASCII characters.
Tested powerpc64-linux, committed to trunk.
commit e539e235bc31bfe1011ad3cd5df14d827f387c33
Author: Jonathan Wakely <jwak...@redhat.com>
Date: Thu Jan 3 21:56:50 2019 +0000
PR libstdc++/88607 replace some more UTF-8 characters
2019-01-03 Jonathan Wakely <jwak...@redhat.com>
Jakub Jelinek <ja...@redhat.com>
PR libstdc++/88607
* include/experimental/memory: Replace UTF-8 quote characters.
* include/std/future: Replace UTF-8 "em dash" characters.
diff --git a/libstdc++-v3/include/experimental/memory b/libstdc++-v3/include/experimental/memory
index 955f83072b9..b8faeb23eef 100644
--- a/libstdc++-v3/include/experimental/memory
+++ b/libstdc++-v3/include/experimental/memory
@@ -63,12 +63,12 @@ inline namespace fundamentals_v2
using __reference = add_lvalue_reference_t<_Tp>; // exposition-only
// 3.2.2, observer_ptr constructors
- // default c’tor
+ // default c'tor
constexpr observer_ptr() noexcept
: __t()
{ }
- // pointer-accepting c’tors
+ // pointer-accepting c'tors
constexpr observer_ptr(nullptr_t) noexcept
: __t()
{ }
@@ -77,7 +77,7 @@ inline namespace fundamentals_v2
: __t(__p)
{ }
- // copying c’tors (in addition to compiler-generated copy c’tor)
+ // copying c'tors (in addition to compiler-generated copy c'tor)
template <typename _Up,
typename = typename enable_if<
is_convertible<typename add_pointer<_Up>::type, __pointer
diff --git a/libstdc++-v3/include/std/future b/libstdc++-v3/include/std/future
index 2b60c58f3bc..6cafde5ee6a 100644
--- a/libstdc++-v3/include/std/future
+++ b/libstdc++-v3/include/std/future
@@ -1629,11 +1629,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
//
// [futures.async]:
//
- // — a call to a waiting function on an asynchronous return object that
+ // - a call to a waiting function on an asynchronous return object that
// shares the shared state created by this async call shall block until
// the associated thread has completed, as if joined, or else time out.
//
- // — the associated thread completion synchronizes with the return from
+ // - the associated thread completion synchronizes with the return from
// the first function that successfully detects the ready status of the
// shared state or with the return from the last function that releases
// the shared state, whichever happens first.