From 1f1f649270a52d7bd19590aebef22b633d6b1069 Mon Sep 17 00:00:00 2001 From: schmidt Date: Sun, 26 Oct 1997 03:23:29 +0000 Subject: *** empty log message *** --- TAO/TAO_IDL/util/utl_string.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'TAO/TAO_IDL/util/utl_string.cpp') diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp index 9058f6aa58b..78231cf1f5f 100644 --- a/TAO/TAO_IDL/util/utl_string.cpp +++ b/TAO/TAO_IDL/util/utl_string.cpp @@ -142,7 +142,9 @@ UTL_String::UTL_String (UTL_String *s) // Compute a canonical form for this string. This is (implemented as) // a corresponding string with all upper case characters where the -// original has lower case characters, identical characters otherwise +// original has lower case characters, identical characters otherwise. +// In addition, Microsoft-style pathnames are put into a canonical +// form (i.e., replacing = '\\' with '\'). void UTL_String::canonicalize (void) { @@ -152,7 +154,7 @@ UTL_String::canonicalize (void) for (i = 0, j = 0; i < len; i++, j++) { // Put Microsoft-style pathnames into a canonical form. - if (p_str[j] == '\\' && p_str[j + 1]) + if (p_str[j] == '\\' && p_str[j + 1] == '\\') { c_str[i] = '\\'; j++; -- cgit v1.2.1