<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>OK guys, another question.</p>
<p>What exactly does your build environment look like these days for
win32? I just tried to boot one of my old Windows VMs with
Borland/Inprise/Embarcadero build tools and it is in such a sad
state, I am not even going to attempt to recover that world right
now. I'd rather support your build environments. What are you
using? cygwin? MicrosoftVS? Something else?</p>
<p>Troy</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 7/18/20 7:53 PM, Tobias Klein wrote:<br>
</div>
<blockquote type="cite"
cite="mid:E1jwr1W-0004ox-T8@smtprelay05.ispgateway.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Thanks Greg & Troy
for pointing out these potential issues. No, I have not
tested my code properly with non-ascii characters in paths /
file names.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I suppose this would
particularly be an issue if the username has certain
characters that cause issues? (applicable for the ~/.sword
directory). And then also, when arbitrary folders are added
to SWMgr?!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’ll do some testing in
this area!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I wonder whether
libraries like Qt or Boost have solved these kind of issues
somehow …<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<br>
Tobias<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div
style="mso-element:para-border-div;border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>From:
</b><a href="mailto:greg.hellings@gmail.com"
moz-do-not-send="true">Greg Hellings</a><br>
<b>Sent: </b>Samstag, 18. Juli 2020 15:58<br>
<b>To: </b><a href="mailto:sword-devel@crosswire.org"
moz-do-not-send="true">SWORD Developers' Collaboration
Forum</a><br>
<b>Subject: </b>Re: [sword-devel] Win32 FileMgr Subclass</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Tobias,</p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Has this been tested with file paths
that contain characters outside of the basic ASCII code
range? That's where current Sword fails. Not in fetching
the data for the paths themselves, but the actual calls
to fopen and friends, on Windows, do not understand non
ASCII data.</p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">It looks like your code would suffer
similar to other Sword code, which eventually passes
through the library's fopen calls.</p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Sat, Jul 18, 2020, 08:24 Tobias
Klein <<a href="mailto:contact@tklein.info"
target="_blank" moz-do-not-send="true">contact@tklein.info</a>>
wrote:</p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC
1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
lang="EN-US">Maybe not a full-fledged FileMgr
class, but at least everything I need in Ezra
Project at the moment:<br>
<br>
</span><a
href="https://github.com/tobias-klein/node-sword-interface/blob/master/src/sword_backend/file_system_helper.hpp"
target="_blank" moz-do-not-send="true">https://github.com/tobias-klein/node-sword-interface/blob/master/src/sword_backend/file_system_helper.hpp</a></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a
href="https://github.com/tobias-klein/node-sword-interface/blob/master/src/sword_backend/file_system_helper.cpp"
target="_blank" moz-do-not-send="true">https://github.com/tobias-klein/node-sword-interface/blob/master/src/sword_backend/file_system_helper.cpp</a></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">It
works on Windows, macOS and Linux.</p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best
regards,<br>
Tobias</p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:
</b><a href="mailto:scribe@crosswire.org"
target="_blank" moz-do-not-send="true">Troy A.
Griffitts</a><br>
<b>Sent: </b>Samstag, 18. Juli 2020 14:42<br>
<b>To: </b><a
href="mailto:sword-devel@crosswire.org"
target="_blank" moz-do-not-send="true">SWORD
Developers' Collaboration Forum</a><br>
<b>Subject: </b>[sword-devel] Win32 FileMgr
Subclass</p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I
know Greg has sent me a link to the patch you guys
apply to get Xiphos </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">to
run well on Win32, but I have searched through all
my past emails </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">with
every relevant term I can thing of, and still can't
find it. I am </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">sorry,
Could you possibly sent that again? I think you guys
were using </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">glib
routines. If possible, I'd like to include
something in SWORD more </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">generic,
possibly using native Win32 calls. I've done
something similar </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">for
a couple projects in the past and need to find all
that code. The </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">only
one I keep thinking of off the top of my head is
swordreader's </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">wince
layer, which I believe is similar to win32 methods,
but might need </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">some
adapting.</p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a
href="http://crosswire.org/svn/swordreader/trunk/src/Dll1/winceSword/src/"
target="_blank" moz-do-not-send="true">http://crosswire.org/svn/swordreader/trunk/src/Dll1/winceSword/src/</a></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The
Xiphos code would be very helpful, if not just for
finding </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">everyplace
you needed to make a modification. Thanks for any
help </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">finding
it,</p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Troy</p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">_______________________________________________</p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">sword-devel
mailing list: <a
href="mailto:sword-devel@crosswire.org"
target="_blank" moz-do-not-send="true">sword-devel@crosswire.org</a></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a
href="http://www.crosswire.org/mailman/listinfo/sword-devel"
target="_blank" moz-do-not-send="true">http://www.crosswire.org/mailman/listinfo/sword-devel</a></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Instructions
to unsubscribe/change your settings at above page</p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> </p>
</div>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal" style="margin-left:4.8pt">_______________________________________________<br>
sword-devel mailing list: <a
href="mailto:sword-devel@crosswire.org" target="_blank"
moz-do-not-send="true">sword-devel@crosswire.org</a><br>
<a
href="http://www.crosswire.org/mailman/listinfo/sword-devel"
target="_blank" moz-do-not-send="true">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
</body>
</html>