Bug 39892 - apr_app_initialize uses environment and CommandLineToArgv on WinCE
Summary: apr_app_initialize uses environment and CommandLineToArgv on WinCE
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: HEAD
Hardware: Other Windows CE
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2006-06-23 20:12 UTC by Curt Arnold
Modified: 2007-05-31 19:42 UTC (History)
0 users



Attachments
#if's out environment and command line reparsing for WinCE (778 bytes, patch)
2006-06-23 20:13 UTC, Curt Arnold
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2006-06-23 20:12:43 UTC
Much of apr_app_initialize performs manipulation of environment variables (in
particularly converting them from Unicode to char*).  Since WinCE doesn't have
environment variables and GetEnvironmentStringW or FreeEnvironmentStringsW, it
is simplest just to #if most of that code out.

apr_app_initialize also update the argv array by parsing the Unicode command
line which uses the CommandLineToArgvW API method which is not available on
WinCE (and not in the Win32 API documentation).  In the patch, the code which
gets the Unicode command line, parses and updates the ASCII argv array is
suppressed on WinCE.
Comment 1 Curt Arnold 2006-06-23 20:13:45 UTC
Created attachment 18525 [details]
#if's out environment and command line reparsing for WinCE
Comment 2 William A. Rowe Jr. 2006-09-19 19:54:41 UTC
Mass reassign the 44 open apr-bugs to apr bug list
Comment 3 Davi Arnaut 2007-04-29 15:29:41 UTC
It compiles and builds fine on VS C++ 6.0
Comment 4 William A. Rowe Jr. 2007-05-31 19:42:56 UTC
Committed, thanks!