diff options
Diffstat (limited to 'TAO/TAO_IDL/util/utl_string.cpp')
-rw-r--r-- | TAO/TAO_IDL/util/utl_string.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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++; |