# HG changeset patch # User Sebastien Jodogne # Date 1391097483 -3600 # Node ID 96d8410c56cdd47b55dbbf23ef9d943b535be1a6 # Parent 7bc5ccc550a168f2055ab40a0b010abe391a6480 newlines diff -r 7bc5ccc550a1 -r 96d8410c56cd NEWS --- a/NEWS Thu Jan 30 16:51:07 2014 +0100 +++ b/NEWS Thu Jan 30 16:58:03 2014 +0100 @@ -3,6 +3,7 @@ * Recover pixel data for more transfer syntaxes (notably JPEG) * Maintenance tool to recover DICOM files compressed by Orthanc +* The newline characters in the configuration file are fixed for Linux Version 0.7.2 (2013/11/08) diff -r 7bc5ccc550a1 -r 96d8410c56cd OrthancServer/main.cpp --- a/OrthancServer/main.cpp Thu Jan 30 16:51:07 2014 +0100 +++ b/OrthancServer/main.cpp Thu Jan 30 16:58:03 2014 +0100 @@ -285,6 +285,11 @@ std::string configurationSample; GetFileResource(configurationSample, EmbeddedResources::CONFIGURATION_SAMPLE); +#if defined(_WIN32) + // Replace UNIX newlines with DOS newlines + boost::replace_all(configurationSample, "\n", "\r\n"); +#endif + std::string target = std::string(argv[i]).substr(9); std::ofstream f(target.c_str()); f << configurationSample;