Files
boost_beast/test/beast/core/file_win32.cpp
Mika Fischer f0c92f472c file_win32 supports UTF-8 paths:
fix #793, close #1791, close #1793

This brings file_win32 in sync with the documentation.
Previously, the path passed to open worked if encoded in the system
codepage (which is almost never UTF-8).
Now, the path must be encoded as UTF-8, as stated in the
documentation.

Adapt file tests so that for file_win32 all paths include a unicorn
character.
2019-12-29 08:56:02 -08:00

39 lines
762 B
C++

//
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header file is self-contained.
#include <boost/beast/core/file_win32.hpp>
#if BOOST_BEAST_USE_WIN32_FILE
#include "file_test.hpp"
#include <boost/beast/_experimental/unit_test/suite.hpp>
namespace boost {
namespace beast {
class file_win32_test
: public beast::unit_test::suite
{
public:
void
run()
{
test_file<file_win32, true>();
}
};
BEAST_DEFINE_TESTSUITE(beast,core,file_win32);
} // beast
} // boost
#endif