mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-07 08:24:53 -04:00
Use local 8-bit strings for paths passed to Fortran
By using the local 8-bit character set we can allow local non-ASCII characters in file paths, for example user account names on MS Windows with characters in the default code page.
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ void getfile(QString fname, bool xpol, int dbDgrd)
|
||||
|
||||
memset(id,0,2*npts);
|
||||
char name[80];
|
||||
strcpy(name,fname.toLatin1());
|
||||
strcpy(name,fname.toLocal8Bit());
|
||||
FILE* fp=fopen(name,"rb");
|
||||
|
||||
if(fp != NULL) {
|
||||
@@ -61,7 +61,7 @@ void savetf2(QString fname, bool xpol)
|
||||
|
||||
qint16* buf=(qint16*)malloc(2*npts);
|
||||
char name[80];
|
||||
strcpy(name,fname.toLatin1());
|
||||
strcpy(name,fname.toLocal8Bit());
|
||||
FILE* fp=fopen(name,"wb");
|
||||
|
||||
if(fp != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user