diff options
author | Rory Byrne <[email protected]> | 2010-01-16 14:47:43 +0000 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-01-27 12:27:35 +0100 |
commit | cf7e585bb45970fe0b5a8a6aa6653cd50583d052 (patch) | |
tree | 4ebe87470ab3203029a9a7b5e8830569bbaf32b1 /lib/stdlib/test/filename_SUITE.erl | |
parent | 1d2a481cfd016f204183b44d8f95798161b423e3 (diff) | |
download | otp-cf7e585bb45970fe0b5a8a6aa6653cd50583d052.tar.gz otp-cf7e585bb45970fe0b5a8a6aa6653cd50583d052.tar.bz2 otp-cf7e585bb45970fe0b5a8a6aa6653cd50583d052.zip |
Fix re:replace/4 to handle unicode charlist Replacement argument
A bug in re:replace/4 causes a badarg exception to be thrown when the
Replacement argument is a charlist containing non-ascii codepoints.
The problem is that the code incorrectly assumes that the Replacement
text is iodata() and calls iolist_to_binary/1 on it. This patch fixes
it to obey the 'unicode' option and handle charlist() Replacement
arguments correctly.
Diffstat (limited to 'lib/stdlib/test/filename_SUITE.erl')
0 files changed, 0 insertions, 0 deletions