Update Italian language (related to cloud settings).
Please take care that there is on item "Trim trailing and Save" (Under Macro menu) that don't have an item in language file.
Please add it.
This feature got a lot of regression due to its dependency on dropbox,
google drive and one drive implementation. This modification removes
such dependecy and allow users to set their settings location - any
cloud location path and even customized local location.
Fixed extra space between UNTITLED_STR and document number "0" when creating a
new buffer on start up through the function FileManager::bufferFromDocument().
HTML auto-complete
- add missing html elements and global events/attributes
- remove some deprecated elements, keeping popular ones
- remove duplicates
HTML lang
- add missing html elements (including deprecated ones) and global events/attributes to langs.model.xml
- remove duplicates
Use JavaScript highlight for JSON, because they have the same syntax.
- [x] `afrikaans.xml` from `iso-8859-2` to `utf-8`
- [x] `albanian.xml` from `iso-8859-2` to `utf-8`
- [x] `arabic.xml` from `iso-8859-2` to `utf-8`
- [x] `aragonese.xml` from `utf-8` to `utf-8`
- [x] `aranese.xml` from `iso-8859-2` to `utf-8`
- [x] `azerbaijani.xml` from `utf-8` to `utf-8`
- [x] `basque.xml` from `ascii` to `utf-8`
- [x] `belarusian.xml` from `windows-1251` to `utf-8`
- [x] `bengali.xml` from `utf-8` to `utf-8`
- [x] `bosnian.xml` from `iso-8859-2` to `utf-8`
- [x] `brazilian_portuguese.xml` from `ibm855` to `utf-8`
- [x] `bulgarian.xml` from `windows-1251` to `utf-8`
- [x] `catalan.xml` from `iso-8859-2` to `utf-8`
- [x] `chinese.xml` from `big5` to `utf-8`
- [x] `chineseSimplified.xml` from `gb2312` to `utf-8`
- [x] `croatian.xml` from `iso-8859-2` to `utf-8`
- [x] `czech.xml` from `iso-8859-2` to `utf-8`
- [x] `danish.xml` from `iso-8859-2` to `utf-8`
- [x] `dutch.xml` from `iso-8859-2` to `utf-8`
- [x] `english.xml` from `ascii` to `utf-8`
- [x] `english_customizable.xml` from `ascii` to `utf-8`
- [x] `esperanto.xml` from `utf-8` to `utf-8`
- [x] `estonian.xml` from `iso-8859-2` to `utf-8`
- [x] `extremaduran.xml` from `windows-1251` to `utf-8`
- [x] `farsi.xml` from `utf-8` to `utf-8`
- [x] `finnish.xml` from `windows-1255` to `utf-8`
- [x] `french.xml` from `iso-8859-2` to `utf-8`
- [x] `friulian.xml` from `iso-8859-2` to `utf-8`
- [x] `galician.xml` from `windows-1251` to `utf-8`
- [x] `georgian.xml` from `utf-8` to `utf-8`
- [x] `german.xml` from `iso-8859-7` to `utf-8`
- [x] `greek.xml` from `iso-8859-7` to `utf-8`
- [x] `gujarati.xml` from `utf-8` to `utf-8`
- [x] `hebrew.xml` from `windows-1255` to `utf-8`
- [x] `hindi.xml` from `utf-8` to `utf-8`
- [x] `hungarian.xml` from `utf-8` to `utf-8`
- [x] `indonesian.xml` from `ascii` to `utf-8`
- [x] `italian.xml` from `iso-8859-2` to `utf-8`
- [x] `japanese.xml` from `shift_jis` to `utf-8`
- [x] `kabyle.xml` from `utf-8` to `utf-8`
- [x] `kannada.xml` from `utf-8` to `utf-8`
- [x] `kazakh.xml` from `utf-8` to `utf-8`
- [x] `korean.xml` from `euc-kr` to `utf-8`
- [x] `kyrgyz.xml` from `utf-8` to `utf-8`
- [x] `latvian.xml` from `iso-8859-8` to `utf-8`
- [x] `ligurian.xml` from `iso-8859-2` to `utf-8`
- [x] `lithuanian.xml` from `iso-8859-2` to `utf-8`
- [x] `luxembourgish.xml` from `iso-8859-2` to `utf-8`
- [x] `macedonian.xml` from `utf-8` to `utf-8`
- [x] `malay.xml` from `ascii` to `utf-8`
- [x] `marathi.xml` from `utf-8` to `utf-8`
- [x] `mongolian.xml` from `utf-8` to `utf-8`
- [x] `norwegian.xml` from `iso-8859-2` to `utf-8`
- [x] `nynorsk.xml` from `iso-8859-2` to `utf-8`
- [x] `occitan.xml` from `iso-8859-2` to `utf-8`
- [x] `polish.xml` from `iso-8859-2` to `utf-8`
- [x] `portuguese.xml` from `ibm855` to `utf-8`
- [x] `romanian.xml` from `iso-8859-2` to `utf-8`
- [x] `russian.xml` from `windows-1251` to `utf-8`
- [x] `samogitian.xml` from `ascii` to `utf-8`
- [x] `sardinian.xml` from `iso-8859-2` to `utf-8`
- [x] `serbian.xml` from `iso-8859-2` to `utf-8`
- [x] `serbianCyrillic.xml` from `windows-1251` to `utf-8`
- [x] `sinhala.xml` from `utf-8` to `utf-8`
- [x] `slovak.xml` from `utf-8` to `utf-8`
- [x] `slovenian.xml` from `iso-8859-2` to `utf-8`
- [x] `spanish.xml` from `iso-8859-2` to `utf-8`
- [x] `spanish_ar.xml` from `iso-8859-2` to `utf-8`
- [x] `swedish.xml` from `iso-8859-2` to `utf-8`
- [x] `tagalog.xml` from `ascii` to `utf-8`
- [x] `tajikCyrillic.xml` from `utf-8` to `utf-8`
- [x] `tamil.xml` from `utf-8` to `utf-8`
- [x] `tatar.xml` from `utf-8` to `utf-8`
- [x] `telugu.xml` from `utf-8` to `utf-8`
- [x] `thai.xml` from `tis-620` to `utf-8`
- [x] `turkish.xml` from `iso-8859-2` to `utf-8`
- [x] `ukrainian.xml` from `utf-8` to `utf-8`
- [x] `urdu.xml` from `iso-8859-2` to `utf-8`
- [x] `uyghur.xml` from `utf-8` to `utf-8`
- [x] `uzbek.xml` from `utf-8` to `utf-8`
- [x] `uzbekCyrillic.xml` from `utf-8` to `utf-8`
- [x] `vietnamese.xml` from `utf-8` to `utf-8`
- [x] `welsh.xml` from `iso-8859-2` to `utf-8`
Use mutex of Yuni library to lock critical operation for the
compatibility of windows xp sp2.
For more info of Yuni library: https://github.com/libyuni
While user tries to save a file which requires administrator privileges,
another instance in admin mode could be launched to save the file in
question.
Make it take generic_string instead of TCHAR*, since at most callsites
we already have a generic_string.
Improve error handling. Depending on where we are in the function when
we get an error, we need to free the memory, unlock the memory, or
close the clipboard.
Note that if SetClipboardData succeeds then we should not do anything
more to the memory.
Just copy the actual results, without the additional formatting with
line and file name. It respects the hierarchy in the results, i.e.
you can copy all results from a search operation, or from a specific
file, or just the lines you selected.
When writing the parameters as a XML file (when the application quits), a new
node was created but not destroyed (`InsertEndChild` makes a clone of the
given node).
When loading a file via `FileManager::loadFileData`, a fixed-length buffer
is filled via `fread`. Then, in some cases, a conversion is done with the help
of `Utf8_16_Read`. However, the method `Utf8_16_Read::convert` performs a call
to `strlen` on this buffer. This is obviously wrong: `\0` char should be
accepted (even if a bit strange) and the buffer is not zero-terminated.
The changes merely consist in adding an additional parameter `length` to
not have to guess the size of the buffer.
The method `FileManager::loadFileData` uses a stack-based buffer for reading
a file. However, due to the optimization used by `Utf8_16_Read` (`UnicodeConvertor`),
this buffer is not copied, but a pointer to this object is kept.
After `loadFileData`, this object is destroyed, but is used afterward
(via `UnicodeConvertor.getNewBuf`).
The non-default constructor of the class Buffer calls the inner method
`checkFileState()`, using the private variable `_currentStatus` to determine
whether some checks on the file attached to the buffer are required or not.
However this variable is properly initialized _after_.
The session snapshot feature runs in its own thread and access to
Scintilla etc is not thread-safe. As a *temporary* and *non-exhaustive*
fix we guard some long-running operations (undo, redo, replace, sort)
with a mutex to prevent data corruption.