Update unicode fs test, increase read buffer, clean macros.

This commit is contained in:
Ivan Baravy 2020-02-29 04:04:32 +03:00
parent f10976c16a
commit 349800ca54
4 changed files with 173 additions and 11 deletions

View File

@ -74,4 +74,142 @@ d0bfd180d0b8d0b2d0b5d182e29da6d0bcd0b8d1800a
status = 0 success, count = 26
d0bfd180d0b8d0b2d0b5d182e29da6f09f9297d0bcd0b8d1800a
/> ls70 /hd0/1/ -e utf8
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f dir0
----f дирâ<E282AC>¦
----f â<>¦â<C2A6>¦â<C2A6>¦
----f дир3
/> ls70 /hd0/1/ -e utf16
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f d
----f 48@f'
----f f'f'f'
----f 48@3
/> ls70 /hd0/1/ -e cp866
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f dir0
----f ¤¨à_
----f ___
----f ¤¨à3
/> ls70 /hd0/1/ -e default
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f d
----f 48@f'
----f f'f'f'
----f 48@3
/> ls70 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e utf8
status = 5 file_not_found
/> ls70 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e utf16
status = 5 file_not_found
/> ls70 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e cp866
status = 5 file_not_found
/> ls70 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e default
status = 5 file_not_found
/> ls70 /hd0/1/дир3/ -e utf8
status = 5 file_not_found
/> ls70 /hd0/1/дир3/ -e utf16
status = 5 file_not_found
/> ls70 /hd0/1/дир3/ -e cp866
status = 5 file_not_found
/> ls70 /hd0/1/дир3/ -e default
status = 5 file_not_found
/> ls80 /hd0/1/ -e utf8
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f dir0
----f дирâ<E282AC>¦
----f â<>¦â<C2A6>¦â<C2A6>¦
----f дир3
/> ls80 /hd0/1/ -e utf16
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f d
----f 48@f'
----f f'f'f'
----f 48@3
/> ls80 /hd0/1/ -e cp866
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f dir0
----f ¤¨à_
----f ___
----f ¤¨à3
/> ls80 /hd0/1/ -e default
status = 6 end_of_file, count = 6
total = 6
----f .
----f ..
----f d
----f 48@f'
----f f'f'f'
----f 48@3
/> ls80 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e utf8
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----f дâ<C2B4>¦Ñ€22
/> ls80 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e utf16
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----f 4f'@2
/> ls80 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e cp866
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----f ¤_à22
/> ls80 /hd0/1/â<>¦â<C2A6>¦â<C2A6>¦/ -e default
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----f 4f'@2
/> ls80 /hd0/1/дир3/ -e utf8
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----- файл33
/> ls80 /hd0/1/дир3/ -e utf16
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----- D09;3
/> ls80 /hd0/1/дир3/ -e cp866
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----- ä ©«33
/> ls80 /hd0/1/дир3/ -e default
status = 6 end_of_file, count = 3
total = 3
----f .
----f ..
----- D09;3
/> disk_del hd0

View File

@ -24,4 +24,30 @@ read80 /hd0/1/dir0/file00/ 0 100 -b
read80 /hd0/1/❦❦❦/др22/ 0 100 -b
read80 /hd0/1/дир3/файл33 0 100 -b
ls70 /hd0/1/ -e utf8
ls70 /hd0/1/ -e utf16
ls70 /hd0/1/ -e cp866
ls70 /hd0/1/ -e default
ls70 /hd0/1/❦❦❦/ -e utf8
ls70 /hd0/1/❦❦❦/ -e utf16
ls70 /hd0/1/❦❦❦/ -e cp866
ls70 /hd0/1/❦❦❦/ -e default
ls70 /hd0/1/дир3/ -e utf8
ls70 /hd0/1/дир3/ -e utf16
ls70 /hd0/1/дир3/ -e cp866
ls70 /hd0/1/дир3/ -e default
ls80 /hd0/1/ -e utf8
ls80 /hd0/1/ -e utf16
ls80 /hd0/1/ -e cp866
ls80 /hd0/1/ -e default
ls80 /hd0/1/❦❦❦/ -e utf8
ls80 /hd0/1/❦❦❦/ -e utf16
ls80 /hd0/1/❦❦❦/ -e cp866
ls80 /hd0/1/❦❦❦/ -e default
ls80 /hd0/1/дир3/ -e utf8
ls80 /hd0/1/дир3/ -e utf16
ls80 /hd0/1/дир3/ -e cp866
ls80 /hd0/1/дир3/ -e default
disk_del hd0

View File

@ -340,17 +340,15 @@ map_memEx:
ret 20
macro include_ x {
inclu#de `x
}
HEAP_BASE equ
include 'init.inc'
sys_msg_board equ __pew
include fix pew
macro pew x {}
macro pew x {inclu#de `x}
macro org x {}
macro format [x] {}
HEAP_BASE equ
include_ 'init.inc'
sys_msg_board equ __pew
macro lea r, v {
if v eq [(ecx-(CURRENT_TASK and 1FFFFFFFh)-TASKDATA.state)*8+SLOT_BASE]
@ -370,10 +368,10 @@ macro add r, v {
end if
}
include_ 'kernel.asm'
include 'kernel.asm'
purge lea,add,org,pew
restore lea,add,org,pew
purge lea,add,org
restore lea,add,org
purge sys_msg_board,HEAP_BASE
coverage_end:
@ -428,4 +426,4 @@ BUTTON_INFO rb 64*1024
BUTTON_INFO equ
endg
include_ 'data32.inc'
include 'data32.inc'

View File

@ -41,7 +41,7 @@
#define MAX_COMMAND_ARGS 42
#define PRINT_BYTES_PER_LINE 32
#define MAX_DIRENTS_TO_READ 100
#define MAX_BYTES_TO_READ (16*1024)
#define MAX_BYTES_TO_READ (1024*1024)
#define DEFAULT_READDIR_ENCODING UTF8
#define DEFAULT_PATH_ENCODING UTF8