|
@@ -257,7 +257,7 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args)
|
|
fileName.c_str(), std::ios::in |
|
|
fileName.c_str(), std::ios::in |
|
|
(hexOutputArg.IsEnabled() ? std::ios::binary : std::ios::in));
|
|
(hexOutputArg.IsEnabled() ? std::ios::binary : std::ios::in));
|
|
#else
|
|
#else
|
|
- cmsys::ifstream file(fileName.c_str(), std::ios::in);
|
|
|
|
|
|
+ cmsys::ifstream file(fileName.c_str());
|
|
#endif
|
|
#endif
|
|
|
|
|
|
if (!file) {
|
|
if (!file) {
|
|
@@ -526,7 +526,7 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
|
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
cmsys::ifstream fin(fileName.c_str(), std::ios::in | std::ios::binary);
|
|
cmsys::ifstream fin(fileName.c_str(), std::ios::in | std::ios::binary);
|
|
#else
|
|
#else
|
|
- cmsys::ifstream fin(fileName.c_str(), std::ios::in);
|
|
|
|
|
|
+ cmsys::ifstream fin(fileName.c_str());
|
|
#endif
|
|
#endif
|
|
if (!fin) {
|
|
if (!fin) {
|
|
std::ostringstream e;
|
|
std::ostringstream e;
|