$TEXT_FILE_EXTENSIONS

Specify the file extensions that are treated as text files, rather than binary files.

$TEXT_FILE_EXTENSIONS { = } ExtensionsList

Arguments

ExtensionsList—list of files extensions that are considered to be text files rather than binary files. If set with no list, all files are treated as binary files.

Defaults

Assignment file: Application
Section:

[SETTINGS]

Default value: .xml;.trx;.asn;.txt;.htm;.hts;.html

Description

The setting allows the user to determine which file extensions are considered text and which are considered binary.

When filemove, lfilemove, filecopy, and lfilecopy transport files to or from zip archives, or across operating systems or media, Uniface handles text files differently than binary files. It copies binary files as-is, but it automatically adjusts text file attributes so that EOL characters and optional character set conversions match the platform. This may result in changes in the file size, making it appear that source and target files are not the same.

By default, Uniface treats files as text files if they have the text file attribute in zip files, or if they have one of the following extensions: .xml, .trx, .asn, .txt, .htm, .hts, .html.

You can use the $TEXT_FILE_EXTENSIONS setting to determine how these Uniface commands handle specific types of files. If you want to switch off automatic cross-platform text attribute handling, set $TEXT_FILE_EXTENSIONS to an empty string.

$TEXT_FILE_EXTENSIONS

Turn off automatic text attribute handling in ProcScript commands for copying and moving files:

$TEXT_FILE_EXTENSIONS = 

Restrict automatic text attribute handling to .xml and .txt files:

$TEXT_FILE_EXTENSIONS = .xml;.txt