New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tr/...//CU core dumps #1945
Comments
From mschilli@perlmeister.comCreated by mschilli1@aol.comThis is a bug report for perl from mschilli1@aol.com, ----------------------------------------------------------------- while (<>) { It throws two (compile time) warnings: Malformed UTF-8 character at ./t line 4. And the snippet below, when presented with latin1 chars, throws a $latin1 = "Abc ääää"; Would be great if you guys could take a look. Thanks, -- Mike Schilli Perl Info
|
From @simoncozens
Bleh. Yes, it should, but toke.c is incorrectly marking the This does that: Inline Patch--- toke.c~ Mon May 08 14:38:48 2000
+++ toke.c Mon May 08 14:38:29 2000
@@ -1448,7 +1448,7 @@
}
}
- if (thisutf || uv > 255) {
+ if (utf || uv > 255) {
d = (char*)uv_to_utf8((U8*)d, uv);
has_utf = TRUE;
}
$unistr = v300.202.203; And got: Which is fine apart from the fact that, amusingly, tr///CU Inline Patch--- doop.c~ Mon May 08 15:23:34 2000
+++ doop.c Mon May 08 15:24:46 2000
@@ -321,6 +321,7 @@
}
*d = '\0';
sv_usepvn_mg(sv, (char*)dst, d - dst);
+ SvUTF8_on(sv);
return matches;
}
@@ -389,6 +390,7 @@
}
*d = '\0';
sv_usepvn_mg(sv, (char*)dst, d - dst);
+ SvUTF8_on(sv);
return matches;
}
I am working on making UTF8 treatment the default and
Yep, I reported that before. Looks like it's fixed in perl-current.
Does now. :) Simon The information transmitted is intended only for the person or entity to which |
From @gsarOn Mon, 08 May 2000 15:21:10 +0900, simon.p.cozens@jp.pwcglobal.com wrote:
Please note: Larry wants tr///CU/UC removed entirely rather than fixed, Sarathy |
From The RT System itselfThe tr///CU feature has been *removed* in 5.7.0, and will be removed also in 5.6.1 because the interface was a mistake. For similar functionality there is the new pack('U0', ...) functionality. |
Migrated from rt.perl.org#3215 (status was 'resolved')
Searchable as RT3215$
The text was updated successfully, but these errors were encountered: