File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 20
20
assert type (sys .flags ).__name__ == "flags"
21
21
assert type (sys .flags .optimize ) is int
22
22
assert sys .flags [3 ] == sys .flags .optimize
23
+ assert sys .maxunicode == 1114111
Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ settrace() -- set the global debug tracing function
256
256
"getfilesystemencoding" => ctx. new_rustfunc( sys_getfilesystemencoding) ,
257
257
"getfilesystemencodeerrors" => ctx. new_rustfunc( sys_getfilesystemencodeerrors) ,
258
258
"intern" => ctx. new_rustfunc( sys_intern) ,
259
- "maxsize" => ctx. new_int( std:: usize :: MAX ) ,
259
+ "maxunicode" => ctx. new_int( 0x0010_FFFF ) ,
260
+ "maxsize" => ctx. new_int( std:: isize :: MAX ) ,
260
261
"path" => path,
261
262
"ps1" => ctx. new_str( ">>>>> " . to_string( ) ) ,
262
263
"ps2" => ctx. new_str( "..... " . to_string( ) ) ,
You can’t perform that action at this time.
0 commit comments