[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    [Boost-users] boost::interprocess::managed_mapped_file filename
From:       Markus Bonk via Boost-users <boost-users () lists ! boost ! org>
Date:       2017-10-10 13:03:35
Message-ID: 6BC6E18F3BA47044A2861A5FB1BBBDE7C618F0A5 () sv083dx002 ! 3dconnexion ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Hi,

Unfortunately wmanaged_mapped_file constructors use char instead of wchar for the \
filename. This causes big problems on windows where %appdata% and %localappdata% \
include the user name which may include Unicode characters that after conversion \
result in the windows ‘A' methods failing to find the referenced file. I don't know \
of any work around except using Unicode filenames.

Does anyone know of a way around this.
Are there any plans of making wmanaged_mapped_file use wchar for the filenames?

Markus






________________________________

Markus Bonk
Senior Software Engineer



[cid:imageac7178.GIF@91f798f8.4ca4a8b2]





3Dconnexion GmbH
Clarita-Bernhard-Str. 18
81249 München
Germany

Tel:    +49 (89) 897 45 42 - 70
Fax:    +49 (89) 897 45 42 - 50

markus_bonk@3dconnexion.com<mailto:markus_bonk@3dconnexion.com>

www.3dconnexion.com<http://www.3dconnexion.com>









Geschäftsführer: Antonio Pascucci
Sitz der Gesellschaft: München
Registergericht: München HRB 99232


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<!-- Template generated by Exclaimer Mail Disclaimers on 03:03:36 Dienstag, 10 \
Oktober 2017 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.ImprintUniqueID {
	MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
	MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
	MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
	MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
	page: Section1
}
</style>
<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:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<p class="ImprintUniqueID"></p>
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Unfortunately wmanaged_mapped_file constructors use char instead \
of wchar for the filename. This causes big problems on windows where %appdata% and \
%localappdata% include the user name which may include Unicode characters that after \
conversion  result in the windows ‘A' methods failing to find the referenced \
file.<o:p></o:p></p> <p class="MsoNormal">I don't know of any work around except \
using Unicode filenames. <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Does anyone know of a way around this.<o:p></o:p></p>
<p class="MsoNormal">Are there any plans of making wmanaged_mapped_file use wchar for \
the filenames?<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Markus<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p></p>
<p class="ImprintUniqueID">&nbsp;</p>
<p class="ImprintUniqueID"></p>
<hr id="HR1">
<p class="ImprintUniqueID"><font \
style="font-family:Arial;font-size:10pt;color:#666666;font-weight:bold;">Markus \
Bonk</font><br> <font \
style="font-family:Arial;font-size:10pt;color:#666666;font-weight:normal;">Senior \
Software Engineer</font></p> <p class="ImprintUniqueID">&nbsp;</p>
<p class="ImprintUniqueID">
<table style="BORDER-COLLAPSE: collapse" class="ImprintUniqueIDTable" border="0" \
cellspacing="0" cellpadding="0" cols="2"> <tbody>
<tr>
<td>
<p class="ImprintUniqueID"><img id="IMG1" border="0" \
src="cid:imageac7178.GIF@91f798f8.4ca4a8b2" width="240" height="43"></p> </td>
</tr>
</tbody>
</table>
</p>
<p class="ImprintUniqueID">
<table style="BORDER-COLLAPSE: collapse" class="ImprintUniqueIDTable" border="0" \
cellspacing="0" cellpadding="0" cols="2"> <tbody>
<tr>
<td width="50" align="left">
<p class="ImprintUniqueID">&nbsp;</p>
</td>
<td width="500" align="left">
<p style="FONT-SIZE: xx-small" class="ImprintUniqueID"><font \
style="font-family:Arial;font-size:10pt;color:#666666;">3Dconnexion GmbH</font><br> \
<font style="font-family:Arial;font-size:10pt;color:#666666;">Clarita-Bernhard-Str. \
18</font><br> <font style="font-family:Arial;font-size:10pt;color:#666666;">81249</font>&nbsp;<font \
style="font-family:Arial;font-size:10pt;color:#666666;">München</font><br> <font \
style="font-family:Arial;font-size:10pt;color:#666666;">Germany</font><br> <br>
<table cellspacing="0" class="b25f9892-9643-43fa-9bfa-d845ff9e525bTable">
<tbody>
<tr>
<td><font style="font-family:Arial;font-size:10pt;color:#666666;">Tel: </font></td>
<td><font style="font-family:Arial;font-size:10pt;color:#666666;">&#43;49 (89) 897 45 \
42 - 70</font></td> </tr>
<tr>
<td><font style="font-family:Arial;font-size:10pt;color:#666666;">Fax: </font></td>
<td><font style="font-family:Arial;font-size:10pt;color:#666666;">&#43;49 (89) 897 45 \
42 - 50</font></td> </tr>
</tbody>
</table>
<br>
<span style="font-family:Arial;font-size:10pt;color:#666666;"><a \
href="mailto:markus_bonk@3dconnexion.com" title="Click to send email to Markus Bonk" \
target="" style="font-family:Arial;font-size:10pt;color:#666666;"><span \
style="font-family:Arial; font-size:10pt; \
color:#666666;">markus_bonk@3dconnexion.com</span></a></span></p> <p \
style="FONT-SIZE: xx-small" class="ImprintUniqueID"><font size="2" face="Arial"><span \
style="font-family:Arial;font-size:10pt;color:#666666;"><a \
href="http://www.3dconnexion.com" title="" target="" \
style="font-family:Arial;font-size:10pt;color:#666666;"><span \
style="font-family:Arial; font-size:10pt; \
color:#666666;">www.3dconnexion.com</span></a></span></font></p> <p style="FONT-SIZE: \
xx-small" class="ImprintUniqueID">&nbsp;</p> <p class="ImprintUniqueID"><a \
style="FONT-FAMILY: Arial; COLOR: #0066ff; FONT-SIZE: x-small; FONT-WEIGHT: bold; \
TEXT-DECORATION: none" title="3Dconnexion" href="" target="_blank"></a></p> <p \
class="ImprintUniqueID">&nbsp;</p> </td>
</tr>
</tbody>
</table>
</p>
<p class="ImprintUniqueID">
<table style="BORDER-COLLAPSE: collapse" class="ImprintUniqueIDTable" border="0" \
cellspacing="0" cellpadding="0" cols="2"> <tbody>
<tr>
<td width="50">
<p class="ImprintUniqueID">&nbsp;</p>
</td>
<td>
<p class="ImprintUniqueID"></p>
<font color="#666666" size="1" face="Arial">Geschäftsführer: Antonio Pascucci<br>
Sitz der Gesellschaft: München<br>
Registergericht: München HRB 99232</font></td>
</tr>
</tbody>
</table>
</p>
<p class="ImprintUniqueID">&nbsp;</p>
<p class="ImprintUniqueID"></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</body>
</html>


["imageac7178.GIF" (image/gif)]

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users
--===============8008043959210743912==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic