Commit Graph

21 Commits

Author SHA1 Message Date
Jonas Maebe
e8f2f23444 * mention support for .rsj extension in help text (based on patch by
Jani Matyas, mantis #28768)

git-svn-id: trunk@31909 -
2015-10-02 08:20:18 +00:00
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
paul
1f83117f16 utils: use fpc 2.6.2 compatible code
git-svn-id: trunk@26489 -
2014-01-17 10:44:24 +00:00
paul
13a0b21031 rstconv: fixed memory leak
git-svn-id: trunk@26484 -
2014-01-17 02:15:35 +00:00
paul
71fbba2b1e utils: parse .rsj file by rstconv tool
git-svn-id: trunk@26479 -
2014-01-16 13:57:33 +00:00
marco
06a5f63582 * patch from Maxim Ganetsky for multiline messages (Mantis 10268)
git-svn-id: trunk@15018 -
2010-03-14 17:23:05 +00:00
Vincent Snijders
d28f943b0e + rstconv: add support for -c XXX parameter to add header containing the CharSet to a .po-file
git-svn-id: trunk@9541 -
2007-12-27 14:37:58 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
Tomas Hajny
352350e524 + .rc support added by Yuri Prokushev 2002-09-30 21:01:37 +00:00
Tomas Hajny
cc750c10cc + support of IBM MSG files added by Yuri Prokushev 2002-09-22 10:58:25 +00:00
peter
952e80a72f * old logs removed and tabs fixed 2002-09-07 15:40:30 +00:00
sg
18ed3a96a1 * Made some fixes so that rstconv now works with range checks enabled 2000-10-03 20:58:50 +00:00
michael
b272ae1344 + Initial import 2000-07-13 10:16:21 +00:00
peter
b13955d6d8 * be optimistic: version 1.00 for some utils 2000-07-04 19:05:53 +00:00
peter
5bd46dd404 * fixed notes 2000-02-07 13:42:39 +00:00
daniel
ec29a31834 * copyright 2000 2000-01-07 16:41:28 +00:00
michael
96b0a1b301 + Added check for missing unitname in constant name 1999-07-24 18:35:10 +00:00
michael
d4760d5963 + Comments and empty lines are now ignored 1999-07-24 16:22:38 +00:00
michael
0cf9926497 + Added rstconv 1999-07-23 18:23:45 +00:00