File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 3
3
** REBOL [R3] Language Interpreter and Run-time Environment
4
4
**
5
5
** Copyright 2012 REBOL Technologies
6
+ ** Copyright 2012-2022 Rebol Open Source Contributors
6
7
** REBOL is a trademark of REBOL Technologies
7
8
**
8
9
** Licensed under the Apache License, Version 2.0 (the "License");
157
158
else Trap_Arg (src_val );
158
159
}
159
160
else if (IS_CHAR (src_val )) {
160
- if (VAL_CHAR (src_val ) < 256 ) {
161
+ if (VAL_CHAR (src_val ) < 128 ) {
161
162
src_ser = BUF_FORM ;
162
163
* SERIES_DATA (src_ser ) = (REBYTE )VAL_CHAR (src_val );
163
164
}
Original file line number Diff line number Diff line change 3
3
** REBOL [R3] Language Interpreter and Run-time Environment
4
4
**
5
5
** Copyright 2012 REBOL Technologies
6
+ ** Copyright 2012-2022 Rebol Open Source Contributors
6
7
** REBOL is a trademark of REBOL Technologies
7
8
**
8
9
** Licensed under the Apache License, Version 2.0 (the "License");
246
247
bp = BIN_SKIP (dst , idx );
247
248
up = UNI_SKIP (src , pos );
248
249
for (n = 0 ; n < len ; n ++ ) {
249
- if (up [n ] > 0xFF ) {
250
+ if (up [n ] >= 0x80 ) {
250
251
//Debug_Num("##Widen-series because char value is:", up[n]);
251
252
// Expand dst and restart:
252
253
idx += n ;
Original file line number Diff line number Diff line change @@ -490,6 +490,13 @@ if system/platform = 'Windows [
490
490
not error? try [write clipboard:// c]
491
491
strict-equal? c try [read clipboard:// ]
492
492
]
493
+ --test-- "issue-2486"
494
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2486
495
+ foreach ch [#"a" #"^(7F)" #"^(80)" #"^(A0)" ][
496
+ write clipboard:// append copy "" ch
497
+ --assert (to binary! ch) = to binary! read clipboard://
498
+ ]
499
+
493
500
===end-group===
494
501
]
495
502
You can’t perform that action at this time.
0 commit comments