-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supports UTF-8 file with BOM. #1693
Conversation
As of icon, that is OK - thats just what everybody else did so far here :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
8bbdc13
to
b9c45c3
Compare
I committed all changes. See if I missed something. |
OK should I try it on the weekend? |
Yeah, tell me if anything I can do. |
if (appSettings.getNewFileDialogLastUsedUtf8Bom()) { | ||
arg_fos.write(0xEF); | ||
arg_fos.write(0xBB); | ||
arg_fos.write(0xBF); | ||
} | ||
if (templateContents != null && (!f.exists() || f.length() < ShareUtil.MIN_OVERWRITE_LENGTH)) { | ||
arg_fos.write(templateContents); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should get rid of own file writing implementation here and instead use FileUtils, what is used at editor as well.
But that is a topic of it's own.
The code may be a bit rough: