1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-11-23 10:58:06 +11:00

Update kn-refer in regards to the filename characters.

This commit is contained in:
20kdc 2018-05-30 16:29:06 +01:00
parent 3df5b6d3c9
commit e6afe02457
2 changed files with 5 additions and 17 deletions

View File

@ -24,7 +24,7 @@ return {
},
["neo-docs"] = {
desc = "KittenOS NEO system documentation",
v = 3,
v = 4,
deps = {
"zzz-license-pd"
},

View File

@ -227,22 +227,10 @@ For libraries, it contains:
ensurePathComponent(s):
Ensures that a string is a safe
filename via a character list and
some special filename checks.
UTF-8 characters are just flat out
disallowed until someone can give
me proof they won't blow up
something somewhere.
(This restriction is Windows's
fault - I can't trust the encoding
mess to not find some new and
imaginative way of breaking
filenames, so I'd rather that they
get avoided until someone can try
actually using them.)
This does NOT ACCOUNT for *all* the
Windows total nonsense (aux, com1)
because if OC doesn't cover up
that then you're kinda doomed.
some special filename checks, for
".." and ".".
Rather permissive right now, but
don't go relying on that.
ensureType(v, ts):
Checks that a value is of a given
type, and errors otherwise. If the