[OGo-Developer] encoding of pllist files
Sebastian Reitenbach
developer@opengroupware.org
Wed, 30 Jan 2008 07:51:42 +0100
Hi,
while trying to get ogo running against gunstep-base, I figured out that
there are problems with regards to the encodings of installed plist files,
e.g. WebUI/OGoWebMail.lso/Resources/Defaults.plist. This file contains
umlauts. The file tool says it is a: ISO-8859 C++ program text, with very
long lines. Without using recode, to recode this file to UTF-8, I ran into
this exception on OGo startup:
#0 0xfbffe402 in __kernel_vsyscall ()
#1 0xb73128f5 in raise () from /lib/libc.so.6
#2 0xb73141e1 in abort () from /lib/libc.so.6
#3 0xb758eb79 in _terminate () at NSException.m:692
#4 0xb758ed93 in _NSFoundationUncaughtExceptionHandler
(exception=0x9462d18) at NSException.m:719
#5 0xb758f50b in -[NSException raise] (self=0x9462d18, _cmd=0xb797a128) at
NSException.m:859
#6 0xb794a3e4 in NGParsePropertyListFromBuffer (
_buffer=0x94602a0 "{\n __OGoWebMail_CVS_ID__", ' ' <repeats 12
times>, "= \"$Id$\";\n PythonExecutable", ' ' <repeats 17 times>, "=
\"python\";\n SieveLogPassword", ' ' <repeats 17 times>, "= NO;\n
mail_subjectLength", ' ' <repeats 15 times>, "= \"30\";\n
mail_senderLength "..., _len=4187) at NGPropertyListParser.m:199
#7 0xb794a462 in NGParsePropertyListFromData (_data=0x94668e8) at
NGPropertyListParser.m:205
#8 0xb794a558 in NGParsePropertyListFromFile (_path=0x945fcf0) at
NGPropertyListParser.m:267
#9 0xb7f1e6d8 in -[OGoModuleManager registerDefaultsAtPath:]
(self=0x945dd60, _cmd=0xb7f4fab8, _path=0x945fcf0) at OGoModuleManager.m:60
#10 0xb7f1e99a in -[OGoModuleManager registerDefaultsOfBundle:]
(self=0x945dd60, _cmd=0xb7f4faf0, _bundle=0x9452b90) at
OGoModuleManager.m:86
#11 0xb7f1ebd9 in -[OGoModuleManager bundleManager:didLoadBundle:]
(self=0x945dd60, _cmd=0xb796a330, _manager=0x8146de8, _bundle=0x9452b90) at
OGoModuleManager.m:124
#12 0xb7922141 in -[NGBundleManager loadBundle:] (self=0x8146de8,
_cmd=0x805c388, _bundle=0x9452b90) at NGBundleManager.m:1119
#13 0x0805338b in -[OGoWebBundleLoader loadBundlesOfType:inPath:]
(self=0x8db5d68, _cmd=0x805c408, _type=0x805c0d4, _p=0x8db8fe8) at
OGoWebBundleLoader.m:95
#14 0x080539c4 in -[OGoWebBundleLoader loadBundles] (self=0x8db5d68,
_cmd=0x8058bf8) at OGoWebBundleLoader.m:169
#15 0x0804bb29 in -[OpenGroupware init] (self=0x819e780, _cmd=0xb7d87228) at
OpenGroupware.m:293
#16 0xb7c7aee3 in WOApplicationMain (_appClassName=0x8057060, argc=3,
argv=0xbfd8c844) at WOApplicationMain.m:40
#17 0xb7c9d259 in WOWatchDogApplicationMain (appName=0x8057060, argc=3,
argv=0xbfd8c844) at WOWatchDogApplicationMain.m:251
#18 0x08049c4c in main (argc=Cannot access memory at address 0x60f1
I've no idea, whether all plist files should be encoded this way, or whether
this would in the end cause more problems than it would solve. This happened
to me on openSUSE 10.3, i586. I cannot remember to have seen this problem on
OpenBSD.
Any idea what would be best to handle this?
cheers
Sebastian