Apache OpenOffice (AOO) Bugzilla – Issue 87130
Build breaks in /svx/source/unodialogs/textconversiondlgs - illegal escape
Last modified: 2008-11-05 21:18:44 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.
reassign
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.
I've removed the illegal escape in svx/source/unodialogs/textconversiondlgs/localize.sdf
Ah... I will also check localize.sdf. Thanks for the information.
@VG: It seems to me thats something for you....
@jeongkyu: I cannot reproduce the error in dbaccess... Please attach the erroneous AutoControls.hrc and output of your 'env' command
@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.
@jeongkyu: Please attach the erroneous AutoControls.hrc and output of your 'env' command
Created attachment 52219 [details] erroneous AutoControls.hrc
Created attachment 52220 [details] env output
@vg: Ah... sorry. :-) I reproduced the issue and attached the files. Thanks.
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.
@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...
@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.
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
It turns out the way in my previous comment can not solve all the errors, please ignore that.
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?
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.
This looks same as issue 89031 that includes an experimental, workaround patch.
the issue 89031 is gonna be fixed by the responsible developer *** This issue has been marked as a duplicate of 89031 ***
close the duplicate