X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4B2AE912.7090003@etr-usa.com> Date: Thu, 17 Dec 2009 19:29:38 -0700 From: Warren Young User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: Cygwin-L Subject: cygwin_conv_path() documentation RFE Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On this page http://cygwin.com/1.7/cygwin-api/func-cygwin-conv-path.html the size parameter should say whether it's measured in bytes or characters. For instance, if I pass CCP_POSIX_TO_WIN_W for the first parameter and a pure ASCII file name for the 'from' parameter, it's obvious the 'to' buffer needs to be at least 2x the size of 'from'. The question the docs don't answer is whether I should pass >= 2*(strlen(from)+1) for size or >= strlen(from)+1? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple