|
From: | @ndré THEVENIN |
Subject: | [Fwd: Re: [Swftools-common] .include fails on Windows] |
Date: | Fri, 18 Apr 2008 18:50:22 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 |
I have already noticed this problem but have got no answer The problem is in a incorrect file format handling for files formatted PC with line terminations CR/LF If you save your files in format UNIX, the include will work OK I send again the correction discarding this problem My files are PC formatted (end of lines with 0d 0a), and the HandleInclude function doesn't handle correctly thes lines. I just sugggest you a small modification in this function while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n' )) { len--; } could become while(len >= 1 && (text[len-1] == ' ' || text[len-1] == '\n' || text[len-1] == '\r')) { len--; } and PC (and also Mac) files will be correctly handled
Jon Hartford a écrit : I'm using Windows XP Home (SP2) and I've tried this with 0.8.1 and the dev release from the downloads page. -- J'ai toujours rêvé d'un ordinateur qui soit aussi facile à utiliser qu'un téléphone. Mon rêve s'est réalisé: je ne sais plus comment utiliser mon téléphone. Bjarne Stroustrup (créateur de C++) -- J'ai toujours rêvé d'un ordinateur qui soit aussi facile à utiliser qu'un téléphone. Mon rêve s'est réalisé: je ne sais plus comment utiliser mon téléphone. Bjarne Stroustrup (créateur de C++) |
[Prev in Thread] | Current Thread | [Next in Thread] |