Commit Graph

34 Commits

Author SHA1 Message Date
Juha
4c6414f837 LazUtils: Support time formatting with 12-hour clock on Windows. Issue #39977, patch by foxpas. 2022-11-02 19:11:36 +02:00
Alexey
6970b3aef1 fix compiler hints in LazUtils 2021-10-29 15:08:50 +03:00
bart
f47a2a5fd6 LazUtils: Remove tests for FPC versions 2.x.
git-svn-id: trunk@64122 -
2020-11-11 14:03:48 +00:00
juha
618261511d LCL: Remove tests for FPC versions 2.x. Cannot be used anyway.
git-svn-id: trunk@64120 -
2020-11-10 09:50:20 +00:00
ondrej
6f1497ade1 revert 61976 #ec34c3f2f1:
lazutils: lazutf8: fixed TStringList.LoadFromFile load UTF8 by default
* not needed any more because the latest FPC trunk has TEncoding.Default=SystemEncoding that is UTF-8 in Lazarus/LazUTF8

git-svn-id: trunk@62474 -
2020-01-02 19:05:58 +00:00
mattias
ec34c3f2f1 lazutils: lazutf8: fixed TStringList.LoadFromFile load UTF8 by default
git-svn-id: trunk@61976 -
2019-10-04 12:05:40 +00:00
bart
a3a7c54e1e LazUtf8: fix compilation for WinCE. Issue #0031788.
git-svn-id: trunk@54845 -
2017-05-09 19:21:42 +00:00
mattias
63b12d5281 lazutf8: under Windows use W function for GetEnvironmentStringUTF8 and GetEnvironmentVariable
git-svn-id: trunk@54269 -
2017-02-25 12:24:25 +00:00
mattias
59445580c3 lazutils: lazutf8: less ifdef cluttering
git-svn-id: trunk@54262 -
2017-02-24 13:13:28 +00:00
blikblum
bb1a32ecba win32: fix WideChar -> UTF8 conversion in GetLocaleStr with fpc 2.6.4. Issue #31272. Patch by Luca Olivetti
git-svn-id: trunk@54005 -
2017-01-26 01:34:29 +00:00
sekelsenmat
d69c951230 Fixes compilation with FPC 2.6
git-svn-id: trunk@52498 -
2016-06-13 09:28:03 +00:00
ondrej
4706ec8505 lazutils: fix compilation with DisableUTF8RTL after r52480 #b13ba1b0b9
git-svn-id: trunk@52488 -
2016-06-12 08:57:25 +00:00
ondrej
47df5bbcc5 lazutils: fix comment from r52480 #b13ba1b0b9
git-svn-id: trunk@52486 -
2016-06-12 08:32:47 +00:00
ondrej
b08c38cba0 lazutils: fix GetFormatSettingsUTF8, make it public
git-svn-id: trunk@52479 -
2016-06-12 05:57:58 +00:00
bart
39da734bec LazUtils: fix compilation for WinCE.
git-svn-id: trunk@51026 -
2015-12-24 18:08:42 +00:00
mattias
9e8df5c8ed lazutils: fixed ConsoleToUTF8 on Windows
git-svn-id: trunk@50624 -
2015-12-04 23:04:44 +00:00
bart
1f91afe602 LazUtils: fix issue with implicit codepage conversion in ParamStrUtf8. Issue #0028815.
git-svn-id: trunk@50569 -
2015-12-02 13:33:56 +00:00
bart
efc3ca18be LazUtf8: Fix Utf8ToConsole. Patch by ChrisF, modified by me. Issue #0028371.
git-svn-id: trunk@50514 -
2015-11-27 10:39:35 +00:00
bart
0c8df133dd LazUtils:
- An attempt to unify the defines for the different scenario's in the use of (not) codepage aware ansistrings
  and the use of the "Utf8 in RTL" feature.
  It makes for better separation of code and thus better readability and ease of maintainance (and in a later
  stadium it makes it easier to remove code that deals with non codepage aware ansistrings (fpc < 3.0)).
- Also replace (FPC_FULLVERSION >= xxxx) with FPC_HAS_CPSTRING where appropriate.
- Replace the custom HasCP define with built in FPC_HAS_CPSTRING define.

git-svn-id: trunk@50498 -
2015-11-24 16:23:18 +00:00
bart
094b14ce22 LazUtils: remove legacy code for the 2.6.0 compiler.
git-svn-id: trunk@50496 -
2015-11-24 14:06:50 +00:00
bart
984edab996 LazUtils: fix compilation of LazUtf8 for fpc <= 3.0.0 after r50470 #22750460e4.
git-svn-id: trunk@50475 -
2015-11-22 23:32:54 +00:00
bart
22750460e4 LazUtils: fix compilation of LazUtf8 for WinCE. Issue #0029059.
git-svn-id: trunk@50470 -
2015-11-22 12:33:32 +00:00
juha
5fc7132693 Use the new UTF-8 system by default. Can be disabled by define DisableUTF8RTL. EnableUTF8RTL is removed.
git-svn-id: trunk@50129 -
2015-10-20 17:20:11 +00:00
mattias
e1e00306cf lazutf8: GetFormatSettingsUTF8: map common multibyte chars to ASCII
git-svn-id: trunk@47890 -
2015-02-18 19:51:28 +00:00
mattias
27ab2c6a1f lazutils: less hints
git-svn-id: trunk@47799 -
2015-02-15 12:37:49 +00:00
mattias
3fb03c60b1 lazutf8: UTF8StrLICompAnsiString: use Count as fixed bound, do not check for #0
git-svn-id: trunk@47162 -
2014-12-10 01:04:26 +00:00
mattias
574751850e lazutf8: in utf8 mode: override widestringmanager Ansi procs
git-svn-id: trunk@47108 -
2014-12-04 20:19:50 +00:00
mattias
b27cc83e34 lazutils: show exceptions of GetFormatSettingsUTF8
git-svn-id: trunk@47103 -
2014-12-04 18:10:53 +00:00
mattias
21c8dad40d lazutils: on force CP_UTF8: set argv and formatsettings
git-svn-id: trunk@46997 -
2014-11-26 22:12:50 +00:00
mattias
5885982aca lazutils: added WinCPToUTF8 and UTF8ToWinCP
git-svn-id: trunk@46904 -
2014-11-20 15:26:28 +00:00
paul
556f193194 components: cleanup
git-svn-id: trunk@41809 -
2013-06-23 10:24:38 +00:00
bart
51a7ea5e7a LazUtf8: Next attempt to fix compilation with 2.6.0 on Windows.
git-svn-id: trunk@41729 -
2013-06-16 13:04:53 +00:00
bart
2aa7ae79c9 LazUtf8: Fix compiling Windows implementation of ParamStrUtf8 for fpc 2.6.0.
git-svn-id: trunk@41724 -
2013-06-16 11:55:10 +00:00
bart
bcea8662ff LazUtils: Move ConsoleToUTF8, UTF8ToConsole, ParamStrUTF8,
GetEnvironmentStringUTF8 and GetEnvironmentVariableUTF8 to LazUtf8 (and inline them in FileUtil).
Part of the ongoing restructuring of LazUtils.

git-svn-id: trunk@41587 -
2013-06-08 14:41:16 +00:00