christian-panel left a comment (geany/geany#4548)
Example test to highlight the bug :
write this in a text file (test.cpp)
// création des couches dans le nouveau document
// --------------------------------------------
int nbcou=TheDoc->NbCouches();
int lastcou=0;
for (int i=0;i<NbOsmEntryIn;i++)
{
const OsmCfgEntry* entry = &OsmCfgTabIn[i];
if (entry->Couche>lastcou)
lastcou=entry->Couche;
}
for (int i=nbcou;i<=lastcou;i++)
{
TCouche* tcou= new TCouche(Ident(i),"osm");
MACROCHECKERRINTERNE(tcou);
if (!TheDoc->AddCouche(tcou))
{
GetErrout() << _("ERREUR: impossible d'ajouter une couche à
l'importation") << endl;
return false;
}
}
save as test.cpp in a directory "DIR" (UTF-8, LF as eol)
translate the same file to testw.cpp in the same directory (Windows-1252, CR+LF
as eol)
find in files in directory DIR the characters "impossible" :
only the sequence in file test.cpp appear, not in testw.cpp
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4548#issuecomment-4314820906
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/4548/[email protected]>