1

Topic: MPI_FileOpen: file name with cyrillic

There is something like: int main (int argc, char *argv []) {const char*pFilName = argv [1]; MPI_FileOpen (<...>, pFilName, <...>); <...>}; At start under Win with cyrillic in file name function MPI_FileOpen () cannot correctly process this name. In docks on MPI_FileOpen () it is not specified anywhere, in what coding the name should be transferred. I assumed that in leaking , but, apparently, no. What here the most general-purpose (in the assumption ) the decision? Thanks.

2

Re: MPI_FileOpen: file name with cyrillic

Hello, _hum _, you wrote: __> What here the most general-purpose (in the assumption ) the decision? utf-8 a line did not try to transfer?

3

Re: MPI_FileOpen: file name with cyrillic

Hello, GhostCoders, you wrote: GC> Hello, _hum _, you wrote: __>> What here the most general-purpose (in the assumption ) the decision? GC> utf-8 a line did not try to transfer? No, did not try, therefore as even if it turns out, it does not approach as the decision - does not guarantee that transits at all other cases (on other platforms).

4

Re: MPI_FileOpen: file name with cyrillic

Hello, _hum _, you wrote: __> is not present, did not try, therefore as even if it turns out, it does not approach as the decision - does not guarantee that transits at all other cases (on other platforms). Not absolutely clearly, what decision you expect. I suspect that in that case the general-purpose decision does not exist, as on each platform implementation MPI "implementation specific" under the relation with the coding of an input file for MPI_FileOpen.

5

Re: MPI_FileOpen: file name with cyrillic

Hello, GhostCoders, you wrote: GC> Hello, _hum _, you wrote: __>> is not present, did not try, therefore as even if it turns out, it does not approach as the decision - does not guarantee that transits at all other cases (on other platforms). GC> it is not absolutely clear, what decision you expect. I suspect that in that case the general-purpose decision does not exist, GC> as on each platform implementation MPI "implementation specific" under the relation with the coding of an input file for MPI_FileOpen. Well, can eat what macroes, adjustments, functions which allow to switch/learn with what coding file system functions work...

6

Re: MPI_FileOpen: file name with cyrillic

Hello, _hum _, you wrote: __> well, can eat what macroes, adjustments, functions which allow to switch/learn with what coding file system functions work... Now it is clear. But the given information I do not own. I can advise to rummage in current implementation MPI (in hider-files) about presence of such macroes. And generally, I suspect that MPI throws such call by means of standard fopen or fstream a C/C ++ for current OS. By experience I can tell that fopen\fstream on Linux support the coding utf-8, and here for Windows it is necessary to transfer leaking  or to use type wchar_t. On Mac like too as utf-8 works.