summaryrefslogtreecommitdiffstats
path: root/pyuno/zipcore
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-12-11 12:57:12 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-12-11 12:57:12 +0000
commit392fb0681022a7fa4b04003f7267cdcf96873a60 (patch)
tree200b7b82f396b779edbaec09765ab6fa11ff6cf7 /pyuno/zipcore
parentCWS-TOOLING: integrate CWS cmcfixes51 (diff)
downloadcore-392fb0681022a7fa4b04003f7267cdcf96873a60.tar.gz
core-392fb0681022a7fa4b04003f7267cdcf96873a60.zip
CWS-TOOLING: integrate CWS sb101
2008-12-08 16:52:06 +0100 sb r265009 : #i95330# python23.dll needs to be copied to brand layer, not just moved there 2008-11-24 18:15:54 +0100 sb r264259 : #i95022# tools::extendApplicationEnvironment gets URE_BOOTSTRAP value from outside bootstrap.cxx, so needs to operate in LOOKUP_MODE_URE_BOOTSTRAP, too 2008-11-20 21:12:31 +0100 jbu r264103 : deactivated debug log 2008-11-20 21:09:03 +0100 jbu r264102 : #i95331# ld_library_path now contains ure/lib directory 2008-11-20 21:05:37 +0100 jbu r264101 : #i95330# python.dll is now installed in the brand-program directory (unix remains unchanged) 2008-11-20 20:46:57 +0100 jbu r264099 : #i95118# + #i93994# Python scripts in share and user uno packages now work again 2008-11-20 20:38:23 +0100 jbu r264098 : #i95037# python wrapper now waits for completion of python executable and currectly returns the exit state 2008-11-20 10:46:28 +0100 sb r264034 : #i95028# import socket, since on Windows sal3.dll no longer calls WSAStartup (and import socket does) 2008-11-18 17:01:09 +0100 sb r263784 : #i96314# fixed encode() 2008-11-18 15:59:17 +0100 sb r263779 : #i95024# missing vnd.sun.star.pathname: in URE_BOOTSTRAP 2008-11-18 13:51:36 +0100 sb r263765 : #i95022# treat \ and $ verbatim in URE_BOOTSTRAP=vnd.sun.star.pathname values
Diffstat (limited to 'pyuno/zipcore')
-rw-r--r--pyuno/zipcore/python.cxx22
-rw-r--r--pyuno/zipcore/python.sh2
2 files changed, 16 insertions, 8 deletions
diff --git a/pyuno/zipcore/python.cxx b/pyuno/zipcore/python.cxx
index 4a7fa06d85c1..412f75a84598 100644
--- a/pyuno/zipcore/python.cxx
+++ b/pyuno/zipcore/python.cxx
@@ -55,14 +55,17 @@ wchar_t * encode(wchar_t * buffer, wchar_t const * text) {
wchar_t c = *text++;
if (c == L'\0') {
break;
- } else if (c == L'$') {
+ } else if (c == L'"') {
+ // Double any preceding backslashes as required by Windows:
+ for (std::size_t i = 0; i < n; ++i) {
+ *buffer++ = L'\\';
+ }
*buffer++ = L'\\';
- *buffer++ = L'$';
+ *buffer++ = L'"';
n = 0;
} else if (c == L'\\') {
*buffer++ = L'\\';
- *buffer++ = L'\\';
- n += 2;
+ ++n;
} else {
*buffer++ = c;
n = 0;
@@ -88,9 +91,11 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
exit(EXIT_FAILURE);
}
wchar_t * pathEnd = tools::filename(path);
- wchar_t bootstrap[MAX_PATH];
+ wchar_t bootstrap[MY_LENGTH(L"vnd.sun.star.pathname:") + MAX_PATH] =
+ L"vnd.sun.star.pathname:"; //TODO: overflow
wchar_t * bootstrapEnd = tools::buildPath(
- bootstrap, path, pathEnd, MY_STRING(L"fundamental.ini"));
+ bootstrap + MY_LENGTH(L"vnd.sun.star.pathname:"), path, pathEnd,
+ MY_STRING(L"fundamental.ini"));
if (bootstrapEnd == NULL ||
(tools::buildPath(path, path, pathEnd, MY_STRING(L"..\\basis-link"))
== NULL))
@@ -251,5 +256,8 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
NULL, &startinfo, &procinfo)) {
exit(EXIT_FAILURE);
}
- exit(EXIT_SUCCESS);
+ WaitForSingleObject(procinfo.hProcess,INFINITE);
+ DWORD exitStatus;
+ GetExitCodeProcess(procinfo.hProcess,&exitStatus);
+ exit(exitStatus);
}
diff --git a/pyuno/zipcore/python.sh b/pyuno/zipcore/python.sh
index ef54c75ecccc..5195f68e24aa 100644
--- a/pyuno/zipcore/python.sh
+++ b/pyuno/zipcore/python.sh
@@ -48,7 +48,7 @@ PATH=$sd_prog${PATH+:$PATH}
export PATH
# Set LD_LIBRARY_PATH so that "import pyuno" finds libpyuno.so:
-LD_LIBRARY_PATH=$sd_prog/../basis-link/program${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
+LD_LIBRARY_PATH=$sd_prog/../basis-link/program:$sd_prog/../basis-link/ure-link/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
# Set URE_BOOTSTRAP so that "uno.getComponentContext()" bootstraps a complete