[svn:parrot] r48841 - trunk/src
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Wed Sep 8 00:08:03 UTC 2010
Author: chromatic
Date: Wed Sep 8 00:08:03 2010
New Revision: 48841
URL: https://trac.parrot.org/parrot/changeset/48841
Log:
[src] Fixed cnv_to_win32_filesep().
The charset_massacre branch merge removed some symbols, and the merge testing
didn't catch this one reference in the source. We should address the issue,
but PARROT_ASSERT() isn't the right way to verify that this naïve approach is
correct.
Modified:
trunk/src/library.c
Modified: trunk/src/library.c
==============================================================================
--- trunk/src/library.c Wed Sep 8 00:02:35 2010 (r48840)
+++ trunk/src/library.c Wed Sep 8 00:08:03 2010 (r48841)
@@ -380,12 +380,8 @@
cnv_to_win32_filesep(ARGMOD(STRING *path))
{
ASSERT_ARGS(cnv_to_win32_filesep)
- char* cnv;
+ char *cnv = path->strstart;
- PARROT_ASSERT(path->encoding == Parrot_fixed_8_encoding_ptr ||
- path->encoding == Parrot_utf8_encoding_ptr);
-
- cnv = path->strstart;
while ((cnv = strchr(cnv, path_separator)) != NULL)
*cnv = win32_path_separator;
}
More information about the parrot-commits
mailing list