ICU source string error: 3 when running ANT-scripts with PCTDumpIncremental in HUDSON

akinnune

New Member
Hi,

I'm trying to make databases to our software-package using ANT-scripts with PCT (Progress Compilation Tools).

I have a macro which includes making of delta.df like this:

!-- Create delta using delta44.txt (file-name hard-coded so far) for renaming -rules -->

<PCTDumpIncremental destFile="@{dbdeltafilename}" activeIndexes="true" renameFile="@{dbdeltarenameguide}" debuglevel="2"
dlcHome="${DLC}" paramFile="compile.pf" iniFile="compile.ini" cpInternal="UTF-8" >
<PCTConnection LogicalName="New" dbName="@{dbname}" dbDir="@{masterdir}" singleUser="true" paramFile="compile.pf">
<PCTAlias name="dictdb"/>
</PCTConnection>

<PCTConnection LogicalName="Old" dbName="@{prevdbname}" dbDir="${PREV_DIR}" singleUser="true" paramFile="compile.pf">
<PCTAlias name="dictdb2"/>
</PCTConnection>
</PCTDumpIncremental>

Databases have UTF-8 codepage with icu-fi collation. I have tried
-cpstream 1252 and
-cpstream UTF-8
in my compile.pf -file, but everytime I get ICU source string error: 3 like this:

[PCTDumpIncremental] Using default value of "UTF-8" for code page.
[PCTDumpIncremental] DUMP_INC_DFFILE = .../.../mydelta.df
[PCTDumpIncremental] DUMP_INC_CODEPAGE = UTF-8
[PCTDumpIncremental] DUMP_INC_INDEXMODE = active
[PCTDumpIncremental] DUMP_INC_RENAMEFILE = .../.../myrename.txt
[PCTDumpIncremental] DUMP_INC_DEBUG = 2
[PCTDumpIncremental]
[PCTDumpIncremental] ICU source string error: 3
[PCTDumpIncremental] ICU source string error: 3
[PCTDumpIncremental] ICU source string error: 3

Any idea where this comes from and how to get rid of it? I have managed to create delta.df, but there seems to be some mess with characters.

It seems that the characters in delta.df are in 1252 although the bottom lines look like this:
.
PSC
cpstream=UTF-8
.
0001130075
 
Re: ICU source string error: 3 when running ANT-scripts with PCTDumpIncremental in HU

Workaround found!

We just put cpStream="UTF-8" and cpInternal="UTF-8" as a parameter for PCTDumpIncremental -task and don't pass any pf- file and ini-file.

Now the script looks like this and we get no errors and the delta.df looks correct:

<!-- Create delta using delta44.txt (file-name hard-coded so far) for renaming -rules -->
<!-- tq - removed for test: paramFile="compile.pf" iniFile="compile.ini" -->
<PCTDumpIncremental destFile="@{dbdeltafilename}" activeIndexes="true" renameFile="@{dbdeltarenameguide}" debuglevel="2" dlcHome="${DLC}" cpStream="UTF-8" cpInternal="UTF-8">
<PCTConnection LogicalName="New" dbName="@{dbname}" dbDir="@{masterdir}" singleUser="true" paramFile="compile.pf">
<PCTAlias name="dictdb"/>
</PCTConnection>

<PCTConnection LogicalName="Old" dbName="@{prevdbname}" dbDir="${PREV_DIR}" singleUser="true" paramFile="compile.pf">
<PCTAlias name="dictdb2"/>
</PCTConnection>
</PCTDumpIncremental>
 
Re: ICU source string error: 3 when running ANT-scripts with PCTDumpIncremental in HU

Thanks for the follow up!

Casper.
 
Back
Top