Issue 87130 - Build breaks in /svx/source/unodialogs/textconversiondlgs - illegal escape
Summary: Build breaks in /svx/source/unodialogs/textconversiondlgs - illegal escape
Status: CLOSED DUPLICATE of issue 89031
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: DEV300m3
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: vg
QA Contact: issues@tools
URL:
Keywords: CJK
Depends on:
Blocks:
 
Reported: 2008-03-17 13:50 UTC by jeongkyu.kim
Modified: 2008-11-05 21:18 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
erroneous AutoControls.hrc (123.66 KB, text/plain)
2008-03-19 17:13 UTC, jeongkyu.kim
no flags Details
env output (7.72 KB, text/plain)
2008-03-19 17:13 UTC, jeongkyu.kim
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jeongkyu.kim 2008-03-17 13:50:33 UTC
My build broke in svx with following errors.

../../../wntmsci11.pro/inc\chinese_direction.hrc(200) : error C2295: escaped '"'
 : is illegal in macro definition
dmake:  Error code 2, while making '../../../wntmsci11.pro/slo/chinese_dictionar
ydialog.obj'

I checked the problematic file and it contains following line at line 200. 

Text[ ur-IN ] = "\"سÛÙ„ چینی سےرسمی چینی";\

After removing the escape, svx could be built successfully.

FYI, my build configuration has an option for localized version, --with-lang=ko.
Comment 1 Martin Hollmichel 2008-03-17 14:01:56 UTC
reassign
Comment 2 jeongkyu.kim 2008-03-17 14:39:42 UTC
I had similar issues in dbaccess module. My build broke with following errors.

...

../../../wntmsci11.pro/inc\AutoControls.hrc : warning C4819: The file contains a
character that cannot be represented in the current code page (949). Save the
file in Unicode format to prevent data loss
../../../wntmsci11.pro/inc\AutoControls.hrc(237) : error C2001: newline in constant
../../../wntmsci11.pro/inc\AutoControls.hrc(334) : error C2001: newline in constant
../../../wntmsci11.pro/inc\AutoControls.hrc(529) : error C2001: newline in constant
../../../wntmsci11.pro/inc\AutoControls.hrc(621) : warning C4819: The file
contains a character that cannot be represented in the current code page (949).
Save the file in Unicode format to prevent data loss
../../../wntmsci11.pro/inc\AutoControls.hrc(631) : error C2001: newline in constant
../../../wntmsci11.pro/inc\AutoControls.hrc(1014) : warning C4819: The file
contains a character that cannot be represented in the current code page (949).
Save the file in Unicode format to prevent data loss
../../../wntmsci11.pro/inc\AutoControls.hrc(1532) : warning C4819: The file
contains a character that cannot be represented in the current code page (949).
Save the file in Unicode format to prevent data loss
../../../wntmsci11.pro/inc\AutoControls.hrc(1664) : error C2295: escaped ''' :
is illegal in macro definition
../../../wntmsci11.pro/inc\AutoControls.hrc(1664) : error C2295: escaped ''' :
is illegal in macro definition
../../../wntmsci11.pro/inc\AutoControls.hrc(1742) : error C2162: expected macro
formal parameter
...

To fix the issue, I had to convert the encoding of following two files from
iso-8859-1 to cp949 with iconv ($ iconv -c -f iso-8859-1 -t cp949 ).

/dbaccess/wntmsci11.pro/inc/AutoControls.hrc
/solver/300/wntmsci11.pro/inc/svx/globlmn.hrc
.

FYI, there was no such issues without enabling localized version. I guess that
it could be a simple workaround to change system default language(default code
page) to build localized version.
Comment 3 oliver.bolte 2008-03-17 15:07:38 UTC
I've removed the illegal escape in
svx/source/unodialogs/textconversiondlgs/localize.sdf
Comment 4 jeongkyu.kim 2008-03-17 15:10:26 UTC
Ah... I will also check localize.sdf. Thanks for the information.
Comment 5 oliver.bolte 2008-03-17 15:13:00 UTC
@VG: It seems to me thats something for you....
Comment 6 vg 2008-03-18 15:06:50 UTC
@jeongkyu: I cannot reproduce the error in dbaccess... Please attach the
erroneous AutoControls.hrc and output of your 'env' command
Comment 7 jeongkyu.kim 2008-03-19 16:07:58 UTC
@vg: This issue happens for me only when
  - system default language is Korean (cp949) and
  - localized version is enabled ( --with-lang=ko ).

Would you try to rebuild dbaccess with those options? You can change system
default language(code page) in Control Panel/Regional Options/Advanced tab.
Comment 8 vg 2008-03-19 16:45:04 UTC
@jeongkyu: Please attach the erroneous AutoControls.hrc and output of your 'env'
command
Comment 9 jeongkyu.kim 2008-03-19 17:13:12 UTC
Created attachment 52219 [details]
erroneous AutoControls.hrc
Comment 10 jeongkyu.kim 2008-03-19 17:13:54 UTC
Created attachment 52220 [details]
env output
Comment 11 jeongkyu.kim 2008-03-19 17:19:05 UTC
@vg: Ah... sorry. :-) I reproduced the issue and attached the files. Thanks.
Comment 12 ameliawang 2008-03-25 04:19:04 UTC
I met the same problem, and I didn't set the --with-lang, I use the default
language setting.
I used a bad solution that I've removed nearly all localize.sdf in svx model.
Comment 13 vg 2008-04-11 19:20:13 UTC
@jeongkyu: it seems to be a Windows problem (its tool's when there is default
(asian?) encoding is set)... In the description you provided it's unclear which
tool's is this error. But I proved all strings, they seem to be ok (UTF8
encoding is ok), so I suspect there's something wrong with the tool... For
further investigation please, provide full output of the dmake in the directory...
Comment 14 jeongkyu.kim 2008-04-16 23:25:29 UTC
@vg: Sorry for late response. I had some problems on my machine so that I have
been been refreshing my build environment. Once it is done, I will check this
issue again and post more information. Thank you.
Comment 15 zhangxiaofei.ooo 2008-05-06 08:03:16 UTC
I think the problems in dbaccess are caused by
dbaccess/source/ui/dlg/localize.sdf, wrong number of \t's are given to separate
items which should only be separated by exactly 4 \t's, I tried to modify that
and it seems to work
Comment 16 zhangxiaofei.ooo 2008-05-06 08:21:17 UTC
It turns out the way in my previous comment can not solve all the errors, please
ignore that.
Comment 17 zhangxiaofei.ooo 2008-05-29 04:38:26 UTC
In dbaccess/source/ui/dlg/localize.sdf, with the language ar, he, and ur-IN, a
lot of string fields and date fields can be found in the reverse position, I
assume this is the cause of the problem?
Comment 18 zhangxiaofei.ooo 2008-05-29 04:48:52 UTC
Same phenomenon as mentioned above can be found in
svx/source/unodialogs/textconversiondlgs/localize.sdf, presumably the cause of
problem happens on svx/wntmsciXX.pro/inc/chinese_direction.hrc

As far as I know similar problem could happen in modules compiled after
dbaccess, too.
Comment 19 tora3 2008-05-29 06:08:15 UTC
This looks same as issue 89031 that includes an experimental, workaround patch.
Comment 20 vg 2008-06-03 17:22:07 UTC
the issue 89031 is gonna be fixed by the responsible developer

*** This issue has been marked as a duplicate of 89031 ***
Comment 21 Mechtilde 2008-11-05 21:18:44 UTC
close the duplicate