Technical article 110118

unix2dos from the DOS command line in Merge returns "cannot open translation table ISO8859-1".

OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

When I try to use the "unix2dos" command on the DOS command line in Merge, I get the error:

cannot open translation table ISO8859-1

Cause

"ISO88590-1" is the default that Merge chooses if the "setlocale"
function indicates that either the locale is not set or it is just
set to "C_C.C".

Our DOS version of dos2unix and unix2dos get their translation tables from filenames named after the code set; "ISO8859-1" (which has 9 characters) exceeds the 8-character limitation for the base part of DOS filenames.

Solution

Currently, there are two workarounds:

1. Log in as root; cd into /usr/lib/merge/dosside/lib/lcs and type:

ln 88591.lcs iso8859-.lcs
- OR -

2. Use the options with unix2dos and dos2unix that specify the code set to translate from. Specify the UNIX code set as "8859".

For example:

dos2unix -o 8859 infile outfile unix2dos -i 8859 infile outfile

This works on all versions of Merge and bypasses the UNIX character set setting.

From the Xinuos technical article database, record 110118. Reproduced with permission. The original is at www.sco.com/ta/110118, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.