Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 46084200AE4 for ; Thu, 26 May 2016 03:30:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 44733160A2E; Thu, 26 May 2016 01:30:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 89DF5160A29 for ; Thu, 26 May 2016 03:30:56 +0200 (CEST) Received: (qmail 78922 invoked by uid 500); 26 May 2016 01:30:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 78912 invoked by uid 99); 26 May 2016 01:30:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 01:30:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 03DE518060F for ; Thu, 26 May 2016 01:30:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.28 X-Spam-Level: X-Spam-Status: No, score=0.28 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cFGfoFTLSTgP for ; Thu, 26 May 2016 01:30:52 +0000 (UTC) Received: from fed1rmfepo201.cox.net (fed1rmfepo201.cox.net [68.230.241.146]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B3C875F4E3 for ; Thu, 26 May 2016 01:30:51 +0000 (UTC) Received: from fed1rmimpo110.cox.net ([68.230.241.159]) by fed1rmfepo201.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20160526013045.QEHE21830.fed1rmfepo201.cox.net@fed1rmimpo110.cox.net> for ; Wed, 25 May 2016 21:30:45 -0400 Received: from [192.168.1.33] ([98.176.34.113]) by fed1rmimpo110.cox.net with cox id ypWj1s00B2STVfm01pWj28; Wed, 25 May 2016 21:30:44 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020201.574651C4.01CB,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.1 cv=HZa0Nnw8 c=1 sm=1 tr=0 a=8xCO7h6kmYZdHn5tUOQhsw==:117 a=8xCO7h6kmYZdHn5tUOQhsw==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=yMhMjlubAAAA:8 a=mV9VRH-2AAAA:8 a=-dCmunvwKOVCN4IL3RYA:9 a=U5J2vqND0HyK5PB2:21 a=JBlW9VCci7yIdVSI:21 a=QEXdDO2ut3YA:10 a=BKKCjISod1eDJeS0ORpz:22 a=BYZmueQyWBbq8FANvIHb:22 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=port88gs@cox.net Message-ID: <574651BF.7070809@gknw.net> Date: Wed, 25 May 2016 18:30:40 -0700 From: Gregg Smith User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r1745517 - /httpd/httpd/branches/2.4.x/support/win32/ApacheMonitor.c References: <20160525162959.B22823A01DD@svn01-us-west.apache.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Thu, 26 May 2016 01:30:57 -0000 On 5/25/2016 11:14 AM, William A Rowe Jr wrote: > Your comment doesn't match the code, and I think you have the condition > inverted, _setargv() worked for decades, and only was broken in the more > recent MSVC's. Typo, should be 1800 in log, I'll change it. I may revert it now that I dug & found $(VCINSTALLDIR) . If that's in VC6 then it's usable all the way up the line and the setargv.obj can just be added to the dsp/mak files. > My thought is to unilaterally change this to the unicode implementation, > because 1. ANSI-only are dead Windows OS's, and 2. Getting the utf-8 > thing right in this app is becoming a big headache. > > Thoughts? If it deals with this then why not! Apachemonitor itself could use another way of figuring out what it's running on also as GetVersionExA is gone and the code in VC > 11 making it work won't last forever I'd suspect. I've been looking into that and MS gives an nice example at https://msdn.microsoft.com/en-us/library/windows/desktop/ms725491%28v=vs.85%29.aspx > On Wed, May 25, 2016 at 11:29 AM, wrote: > >> Author: gsmith >> Date: Wed May 25 16:29:59 2016 >> New Revision: 1745517 >> >> URL: http://svn.apache.org/viewvc?rev=1745517&view=rev >> Log: >> backport r1745516 >> _setargv will not compile on _MSC_VER< 1700 >> MS documentation's example simply does not work. >> Disabe for now, Apachemonitor still works. >> >> Modified: >> httpd/httpd/branches/2.4.x/support/win32/ApacheMonitor.c >> >> Modified: httpd/httpd/branches/2.4.x/support/win32/ApacheMonitor.c >> URL: >> http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/support/win32/ApacheMonitor.c?rev=1745517&r1=1745516&r2=1745517&view=diff >> >> ============================================================================== >> --- httpd/httpd/branches/2.4.x/support/win32/ApacheMonitor.c (original) >> +++ httpd/httpd/branches/2.4.x/support/win32/ApacheMonitor.c Wed May 25 >> 16:29:59 2016 >> @@ -1586,8 +1586,10 @@ int WINAPI WinMain(HINSTANCE hInstance, >> #ifdef UNICODE >> __wargv = CommandLineToArgvW(GetCommandLineW(),&__argc); >> #else >> +#if defined(_MSC_VER)&& _MSC_VER< 1800 >> _setargv(); >> #endif >> +#endif >> >> if ((__argc == 2)&& (_tcscmp(__targv[1], _T("--kill")) == 0)) >> { >> >> >>