View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0019483LazarusIDEpublic2011-06-04 19:512013-06-19 12:19
ReporterJuha Manninen 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version0.9.31 (SVN)Product Build 
Target VersionFixed in Version 
Summary0019483: Lazarus cannot build to a directory which has unicode characters in its name
DescriptionBased on earlier Unicode experiments and some related bug reports I created a windows directory with cyrillic chars:
 C:\SW\Лейбл1
I can open it and copy/paste its name here so I guess it is a valid directory name.
Then I tried to save a test project there and got an error:
  Unable to create file "C:\SW\?????1\project1.ico".

Tested on WinXP running under VirtualBox.

On Linux there is no such problem.
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetWin32/Win64
Attached Files

- Relationships
related to 0012627closedBart Broersma Lazarus Can't open project if its path include Unicode (non ANSI) chars 
related to 0011207resolvedMattias Gaertner Lazarus Invalid handling of non-english characters in filenames 
related to 0014467resolvedJonas Maebe FPC DirectoryExists returns false for directory names containing non-ASCII characters (win32) 
related to 0015233feedbackMarco van de Voort FPC SysUtils.GetTempFileName returns garbage when system temp path contains non-ASCII characters 
has duplicate 0019058resolvedBart Broersma Lazarus Path Problem of 0.9.30 (released on 2011-03-22) 
has duplicate 0022309resolvedJuha Manninen Lazarus Win32: memory leak, after save project fails 
related to 0020672closedFelipe Monteiro de Carvalho Lazarus IDE not start if Windows user name non ascii 
related to 0020835closedBart Broersma Lazarus ExpandFileNameUTF8 broken 
related to 0021817resolvedJuha Manninen Lazarus "FileUtil.CopyFile" would failed to work with Unicode Characters filename. 
related to 0022216resolvedMattias Gaertner Lazarus Lazarus cannot write configuration when directory contains accents 

-  Notes
(0048839)
Juha Manninen (developer)
2011-06-04 22:08

FPC may have its own problems with unicode paths but Lazarus can solve this kind of problems by UTF8 functions defined in LCL.
(0068086)
Juha Manninen (developer)
2013-06-06 10:40

This has improved. Now Lazarus trunk can save to the directory, but FPC still gives an error:

Failed to execute C:\FPC\2.6.2\bin\i386-win32\fpc.exe -B -MObjFPC -Scghi -O1 -g -gl -WG -vewnhi -FiC:\SW\?????1\lib\i386-win32 -FuC:\SW\lazarus\lcl\units\i386-win32\win32 -FuC:\SW\lazarus\lcl\units\i386-win32 -FuC:\SW\lazarus\components\lazutils\lib\i386-win32 -FuC:\SW\lazarus\packager\units\i386-win32 -FuC:\SW\?????1\ -FUC:\SW\?????1\lib\i386-win32\ -l -dLCL -dLCLwin32 project1.lpr : 267
(0068102)
Bart Broersma (developer)
2013-06-06 23:48

Ultimately this may be an fpc issue.
Tthe compiler treats all commandline parameters as ANSI (current codepage).
The only solution would be to pass the parameters as widestrings, and let the compiler use the widestring version of GetCommandLine API.
(0068157)
_Gábor (reporter)
2013-06-09 15:31

Other related bug reports: 0014467, 0015233
(0068392)
Bart Broersma (developer)
2013-06-19 12:18

Updated the summary to reflect the problem.
Opening/saving has been resolved.

- Issue History
Date Modified Username Field Change
2011-06-04 19:51 Juha Manninen New Issue
2011-06-04 19:51 Juha Manninen LazTarget => -
2011-06-04 19:51 Juha Manninen Widgetset => Win32/Win64
2011-06-04 19:55 Juha Manninen Relationship added related to 0019058
2011-06-04 19:55 Juha Manninen Relationship added related to 0019467
2011-06-04 19:56 Juha Manninen Description Updated
2011-06-04 21:56 Juha Manninen Relationship added related to 0012627
2011-06-04 22:03 Juha Manninen Relationship added related to 0011207
2011-06-04 22:08 Juha Manninen Note Added: 0048839
2011-10-05 17:07 Vincent Snijders Status new => acknowledged
2011-11-13 00:54 Juha Manninen Relationship added related to 0020672
2011-12-07 22:42 Juha Manninen Relationship added related to 0020835
2012-04-24 20:20 Juha Manninen Relationship added related to 0021817
2012-06-14 20:21 Juha Manninen Relationship added related to 0022216
2012-06-24 23:06 Juha Manninen Relationship added has duplicate 0022309
2013-06-06 10:40 Juha Manninen Note Added: 0068086
2013-06-06 23:48 Bart Broersma Note Added: 0068102
2013-06-09 13:45 Bart Broersma Relationship replaced has duplicate 0019058
2013-06-09 15:31 _Gábor Note Added: 0068157
2013-06-09 16:02 Juha Manninen Relationship added related to 0014467
2013-06-09 16:02 Juha Manninen Relationship added related to 0015233
2013-06-19 12:18 Bart Broersma Note Added: 0068392
2013-06-19 12:18 Bart Broersma Summary Lazarus can't save to a directory which has unicode characters in its name => Lazarus build to a directory which has unicode characters in its name
2013-06-19 12:19 Bart Broersma Summary Lazarus build to a directory which has unicode characters in its name => Lazarus cannot build to a directory which has unicode characters in its name
2013-06-30 09:21 Juha Manninen Relationship deleted related to 0019467



MantisBT 1.2.12[^]
Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker