<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Originally, I was going to post this on wine-users but after I wrote it, it seemed like wine-devel might be more appropriate.  Please let me know if I need to re-submit it to wine-users.<div><br></div><div>I understand that Wine is mostly used for running Windows apps on Linux - i.e. in most cases, the user will be launching the Windows app manually.  But what about a Linux application that needs to launch a Windows app?  What does Wine do (if anything) about command-line parameters..?</div><div><br></div><div>After using fork() to create a new process, this would be a typical program command to start Wine and the Windows app:-</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><font class="Apple-style-span" size="3">      execl (the_path_to_wine, <span style="color: #d12e1b">"wine"</span>, path_to_the_windows_program, command_line_parameter_for_windows_app, <span style="color: #bb2da2">NULL</span>);</font></div></div><div><br></div><div>Notice that execl() passes two command-line parameters to Wine (one of which gets passed to the Windows app).  Let's assume this is a file path as that's easy to visualize.</div><div><br></div><div>In the vast majority of cases, those command-line parameters will get passed to Wine as UTF8 strings.  Wine will hopefully understand this when interpreting 'path_to_the_windows_program'.  However, Windows programs themselves don't understand UTF8 at all - except for a very limited set of (mostly English) characters.  So if that parameter was a file path (e.g. a file that the Windows program needed to open) it would only get understood in an English speaking locale.  Non-English characters (accented characters etc) would only get understood if a locale translation takes place.</div><div><br></div><div>Is Wine clever enough to realise that the UTF8 string needs to be converted to a locale-specific string, so that the Windows app can understand it?  Or does Wine simply pass whatever characters it received, without attempting any translation?  Thanks.</div><div><br></div><div>John</div></body></html>