The sources of the Free Pascal compiler, RTL, packages and utilities. See https://www.freepascal.org/ for more info.
Go to file
Jonas Maebe 05bf826342 + support UTF-8 in ascii2unicode(), this fixes the UTF-16 output of
resourcestring data .rsj files in case the source file is interpreted as
    UTF-8. Previously, the individual UTF-8 bytes were each stored in a
    separate widechar in the Json file (mantis #28717)

  * due to the fact that rstconv didn't use the cwstring unit on Unix, rstconv
    until now just concatenated the bytes stored in the widechars of the Json
    file on those platforms, i.e., the strings put in the resource file were
    byte for byte equal to what was in the source file. On Windows, these bytes
    were interpreted as individual widechars, converted to the
    DefaultSystemCodePage and then written. This means that for anything but
    ISO-8859-1 (where every widechar from #0000 to #0255 maps to #0 to #255),
    the output got corrupted.

    In order to keep compatibility with the old behaviour whereby rstconv wrote
    the resource strings using the same encoding as in the source file (except
    if the data got completely corrupted, in which case compatibility is
    useless), we now store all resourcestrings twice in the .rsj file: once as
    the exact byte sequence from the source file, and once (properly) encoded
    in UTF-16.

    By default, rstconv will use the byte string and just write that one to the
    resource file. Additionally, there is a new -p option that accepts a code
    page name (see rstconv -h for the list of supported names), which can be
    used to make rstconv use the UTF-16 version and convert that to the desired
    code page (as long as the system on which rstconv runs supports that
    codepage).

    And this also finally resolves mantis #6477.

git-svn-id: trunk@31881 -
2015-09-28 22:14:56 +00:00
compiler + support UTF-8 in ascii2unicode(), this fixes the UTF-16 output of 2015-09-28 22:14:56 +00:00
ide * updated all the remaining makefiles that 'fpcmake -r' missed 2015-09-05 11:21:36 +00:00
installer * correct the highest possible number of items in tab/group and fix the LIBPATH information moved by one line in the dialogue box 2015-09-13 20:41:26 +00:00
packages Call inherited method in InternalPost (check for required fields) 2015-09-28 18:39:00 +00:00
rtl - removed unnecessary zero fill of regs in CheckLFN in the win16 system unit 2015-09-28 00:17:53 +00:00
tests * Use "clongdouble" instead of "extended" in libc printf tests. 2015-09-27 21:14:04 +00:00
utils + support UTF-8 in ascii2unicode(), this fixes the UTF-16 output of 2015-09-28 22:14:56 +00:00
.gitattributes + dummy win16 mouse unit implementation 2015-09-27 23:35:57 +00:00
.gitignore * Removed empty tests directory from svn 2014-11-08 15:47:53 +00:00
fpmake_add1.inc
fpmake_proc1.inc
fpmake.pp
Makefile * regenerated makefiles after adding the win16 target 2015-09-05 11:02:54 +00:00
Makefile.fpc * regenerated makefiles after adding the win16 target 2015-09-05 11:02:54 +00:00