REBOL 3.0

Meaning of TO-LOCAL-FILE

Carl Sassenrath, CTO
REBOL Technologies
28-Mar-2008 23:58 GMT

Article #0121
Main page || Index || Prior Article [0120] || Next Article [0122] || Post Comments || Send feedback

For R3 Unicode, we need to more precisely define a few functions. One of those is to-local-file -- used to convert file names from REBOL format to the local OS format.

Specifically, if we want to-local-file to return a string (given a file datatype), then that string remains in REBOL's internal format, not the OS native format (e.g. wide-chars on Win32 and UTF8 on Linux).

So, when we say to-local-file we only mean the higher level conversion of the string, not the lower level encoding of the filename. That encoding must occur later, such as when the file is opened for read or write.

Post Comments

REBOL 3.0
Updated 10-Apr-2024 - Edit - Copyright REBOL Technologies - REBOL.net