# # patch "ChangeLog" # from [104302bfd80545e4da3ecc8519293ce0cc4aa710] # to [c8932647b57835f8d2cd3cd776d7616d66083aaf] # # patch "transforms.cc" # from [eee4d7adba92b000dbaf37d192239ca92f01b11b] # to [0faca837b3bfbe8a8db6f1ee3d3901dbaf7aade4] # ======================================================================== --- ChangeLog 104302bfd80545e4da3ecc8519293ce0cc4aa710 +++ ChangeLog c8932647b57835f8d2cd3cd776d7616d66083aaf @@ -1,5 +1,9 @@ 2005-08-23 Nathaniel Smith + * transforms.cc: Convert to paths.hh. + +2005-08-23 Nathaniel Smith + * transforms.{cc,hh} (localized, localized_as_string): Remove. 2005-08-23 Nathaniel Smith ======================================================================== --- transforms.cc eee4d7adba92b000dbaf37d192239ca92f01b11b +++ transforms.cc 0faca837b3bfbe8a8db6f1ee3d3901dbaf7aade4 @@ -12,8 +12,6 @@ #include #include -#include -#include #include #include @@ -348,12 +346,10 @@ else { // no conversions necessary, use streaming form - // still have to localize the filename - fs::path localized_file = localized(file); // Best to be safe and check it isn't a dir. - I(fs::exists(localized_file) && !fs::is_directory(localized_file)); + I(path_state(file) == path::file); Botan::Pipe p(new Botan::Hash_Filter("SHA-1"), new Botan::Hex_Encoder()); - Botan::DataSource_Stream infile(localized_file.native_file_string()); + Botan::DataSource_Stream infile(file.as_external()); p.process_msg(infile); ident = lowercase(p.read_all_as_string()); @@ -598,6 +594,7 @@ return true; } +// this function must be fast. do not make it slow. void utf8_to_system(std::string const & utf, std::string & ext) {