Skip to content

Commit 34fe1e3

Browse files
authored
Merge pull request #101 from phprus/encoding
Removed duplicate encoding conversion
2 parents 799fcb4 + 011e039 commit 34fe1e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/ghc/filesystem.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ inline path& path::operator/=(const Source& source)
24332433
template <class Source>
24342434
inline path& path::append(const Source& source)
24352435
{
2436-
return this->operator/=(path(detail::toUtf8(source)));
2436+
return this->operator/=(path(source));
24372437
}
24382438

24392439
template <>
@@ -2502,7 +2502,7 @@ template <class EcharT>
25022502
inline path::path_type_EcharT<EcharT>& path::operator+=(EcharT x)
25032503
{
25042504
std::basic_string<EcharT> part(1, x);
2505-
concat(detail::toUtf8(part));
2505+
concat(part);
25062506
return *this;
25072507
}
25082508

0 commit comments

Comments
 (0)