* harbour/src/common/expropt2.c
* small code simplification
* harbour/src/rtl/hbregex.c
% eliminated call to pcre_config() on each regex compilation
* harbour/utils/hbmk2/hbmk2.prg
! fixed -head=full for code using non UTF8 characters.
It was broken because in UNIX builds UTF8 is always enabled
as HVM CP in HBMK2 and this setting was inherited by PCRE
with PCRE_UTF8 flag. If this flag is used PCRE validates
all strings and refuse to make any operations if they are
not valid UTF8 string so it was not working at all for
source code using different encoding.
! fixed regex used in -head=full to respect shortcuts in #include
directive, i.e.:
#incl "file.ch"
! fixed regex used in -head=full to recognize #include directives
separated by ';', i.e.:
#include "file1.ch" ; #include "file2.ch" ; #include "file3.ch"
; TOFIX: UTF8 mode on output should not be enabled unconditionally in
all UNIX builds. There are many *nix installations where UTF8
is not system CP, i.e. older Linux distributions. In fact
it's user attribute so each user can use different encoding
local to his connection and/or terminal settings. Probably
it's good idea to use code like:
lUTF8 := "UTF-8" $ GetEnv( "LANG" ) .OR. ;
"UTF-8" $ GetEnv( "LC_CTYPE" )
* contrib/hbqt/qtcore/hbqt_pointer.cpp
+ Added: hbqt_par_isDerivedFrom() - protection against a null
pointer passed as an argument. This makes possible to detect
if an object is still active when passed. If not, a RTE is
generated. This covers some more potential user mistakes.
* contrib/hbqt/hbmk2_qt.hbs
! Fixed: to take use of the hbqt_par_isDerivedFrom() completely.
This renders parameter checking with Class TYPE constants
redundant which can be removed alltogether. This also
facilitates usage of subclassing a Qt class.
; TODO: impliment siblings checking inside hbqt_par_isDerivedFrom().
HBQPlainTextEdit() is a sibling of QPlainTextEdit().
* utils/hbmk2/hbmk2.prg
! fixed RTE when logging sign command
! fixed `` operator to strip CRs and convert LFs to space
in stdout output.
* src/rdd/dbcmd.c
! clarified DBCREATE() 4th parameter in comment
* utils/hbmk2/hbmk2.prg
* .hb? input make files are now considered with UTF8 encoding.
+ enabled full UTF8 CP on *nix systems. EXPERIMENTAL.
* debian/copyright
* package/winuni/mpkg_win_uni.nsi
* utils/hbmk2/hbmk2.prg
* contrib/hbpost.hbm
* contrib/hbnetio/utils/hbnetio/modules.hbp
* contrib/hbnetio/utils/hbnetio/netiosrv.prg
* contrib/hbqt/hbqt_common.hbm
* contrib/hbide/ideedit.prg
* contrib/hbide/idemisc.prg
* contrib/hbide/idesaveload.prg
* contrib/hbrun/hbrun.prg
* contrib/hbrun/plugins.prg
* config/postinst.hbs
* COPYING
+ added support for .hb extension for Harbour scripts.
I plan to make a full switch to .hb from .hbs.
* contrib/hbct/getsecrt.prg
* use hb_keyCode() instead of Asc() to form numeric key value.
* contrib/hbtip/encqp.prg
! Quoted-printable encoding/decoding fixed to use FOR/NEXT
loop instead of FOR/EACH and HB_B*() string functions to
operate on binary data regardless of HVM CP.
! Fixed old typo causing no encoding for line-ending whitespaces.
* contrib/hbtip/mail.prg
! Q-encoding fixed to use FOR/NEXT
loop instead of FOR/EACH and HB_B*() string functions to
operate on binary data regardless of HVM CP
* utils/hbmk2/hbmk2.prg
+ added experimental code signing support for win and darwin
using '-sign=<ID> [-signpw=<pw>]' options.
on win, it requires MSVS in path.
* utils/hbmk2/hbmk2.prg
! fixed missed incremental updates in '-inc -head=dep'
mode on win/os2/dos systems when -workdir= was set to
an absolute path. The drive separator colon was confused
with the file/dependency separator colon. Nasty.
* examples/dbu/dbu52.dif
* examples/dbu/dbu53.dif
+ updated for UTF8 HVM CP. Start with "-utf" option to activate.
In -utf mode, tables will also be open using UTF8EX CP.
+ added support for clipboard paste using <Alt+V>
+ link all CPs
! fixed to use hb_ps() instead of MS-DOS/win specific pathsep
* examples/commouse/commouse.prg
+ updated for unicode
* include/hbcompdf.h
* include/hbexprop.h
* include/hbexprb.c
* src/common/funcid.c
* src/common/expropt2.c
+ added compile-time optimization for HB_BCHAR()
and HB_BCODE().
* contrib/hbct/hbct.hbp
* contrib/hbct/hbct.hbx
+ contrib/hbct/ctscan.ch
+ contrib/hbct/kxlat.prg
* contrib/hbct/ctdummy.prg
* contrib/hbct/dummy.c
+ added CT compatiblity functions: SETKXLAT(), GETKXLAT(),
SETKXTAB(), GETKXTAB(). Former two replaces existing
dummy implementations. Check CT documentation for syntax.
NOTES: - KS_PAD[0-9] and KS_PAD_DECIMAL are not supported in
Harbour, because they have no corresponding inkey.ch
value.
- Harbour uses HB_GTI_INKEYFILTER to implement these
functions, and due to this, they will gracefully
fail if the application has already set
HB_GTI_INKEYFILTER to a custom value.
+ added:
HBCT_GETKXLAT( <nOrgKey>[, <nNewKey> ] ) -> <lAccepted>
HBCT_GETKXTAB( <nOrgKey> ) -> <nNewKey>
HBCT_SETKXLAT( <hTrs> ) -> <lAccepted>
HBCT_SETKXTAB() -> <hTrs>
Same as above, but they use standard inkey() values.
; USE AT YOUR OWN RISK. NO GUARANTEES.
* contrib/hbct/showtime.prg
* contrib/hbct/screen2.c
* internal fn renamed: _HB_CTDSPTIME() -> __HBCT_DSPTIME()
* src/rtl/hbregex.c
% deleted unnecessary protection around PCRE_CONFIG_UTF8
macro usage. (it was used unprotected elsewhere in the
code for a long time)
* INSTALL
+ added mingw64 on win64 host example. (same as on win32,
except comment)
* src/rtl/cdpapihb.c
% HB_UTF8TOSTR()/HB_STRTOUTF8() optimized to "fall through"
if the HVM CP is UTF8. Check me.
* utils/hbmk2/hbmk2.prg
! TOFIX removed from two FOR EACH loops, they work on ASCII chars only
! one FOR EACH loop conditionally converted to FOR NEXT to work with all CPs
! one FOR EACH loop converted to FOR NEXT and to work on binary data
! Changed certain function calls to hb_ascii*() prefixed versions
! fixed .hbx generator to work with accented filenames
* harbour/src/rtl/gtstd/gtstd.c
* harbour/src/rtl/gttrm/gttrm.c
* harbour/src/rtl/gtsln/gtsln.c
* harbour/src/rtl/gtpca/gtpca.c
! do not redirect STDERR to screen buffer if default screen
output is not redirected to console/tty device
* utils/hbmk2/hbmk2.prg
+ hbmk2 code made compatible with UTF8 HVM CP
except where FOR EACH is used on strings, which are all
broken with UTF8 now. Marked these with TOFIX.
+ strip UTF8 BOM from .hbm/.hbp/.hbc input files
+ added PROC CLIPINIT (I can't make it work, so commented
for now)
; Switching to UTF8EX creates quite many strange problems
when accepting cmdline arguments, passing them to embedded
compiler, external tools, so it's not yet enabled. Also,
one some platforms _SET_OSCODEPAGE is required (DOS/OS2),
on some not, and detection of these cases and actual value
is not easy (if possible). Tests made only on Windows,
maybe on *nix I'll retry and moving to UTF8 will be done
platform by platform.
; NOTE: I plan to make UTF8 the standard encoding for .hbp/.hbm/.hbc files.
; TOFIX: FOR EACH for UTF8EX CP
; TOFIX: cmdline arguments via Main() parameters, hb_AParams()
and hb_cmdLine() on Windows.
; TODO: Add a way to detect maximum bit width of unicode chars,
for now I hard-coded 16-bit.
* include/hbver.h
* package/harbour.spec
* package/harb_win.mft
* package/harbour-win.spec.in
* package/harbour-wce.spec.in
* package/winuni/mpkg_win_uni.bat
* harbour/debian/changelog
* trunk version bump. 3.1.0dev -> 3.2.0dev
this is to make it easy to create conditional code
for new features and the few incompatibilities after
introducing unicode in Harbour. May be bumped further
when FOR EACH is decided.
* contrib/hbexpat/tests/tohash.prg
+ enabled UTF8EX for testing
* contrib/hbmisc/udpds.prg
+ updated to be CP agnostic
+ changed protocol to use UTF8 through the wire
; NOTE: requires not yet committed HB_BLEFT()
* include/harbour.hbx
* minor
* harbour/include/hbapilng.h
* harbour/src/vm/hvm.c
* harbour/src/rtl/langapi.c
* harbour/include/harbour.hbx
+ added new PRG function:
HB_LANGNEW( <cNewLangId>, <cNewLangCpId>,
<cLangId>, <cLangCpId> ) -> <lOK>
this function dynamically creates new lang module translating
existing one then registers it, i.e.:
request HB_CODEPAGE_DE850
request HB_CODEPAGE_DEISO
request HB_LANG_DE
HB_LANGNEW( "DEISO", "DEISO", "DE", "DE850" )
SET( _SET_LANGUAGE, "DEISO" )
* harbour/src/rtl/cdpapi.c
* changed dynamic buffer for "EN" CP translations and flags
to static one - it allows to use this CP after hb_cdpReleaseAll()
* harbour/src/vm/cmdarg.c
! respect HB_ARGSHIFT( .T. ) in windows version of hb_cmdargProgName()
* harbour/ChangeLog
! fixed some typos in my unicode ChangeLog entry
* harbour/src/rtl/inkey.c
* modified HB_KEYPUT() and HB_KEYINS() to convert strings
into key codes instead of passing them directly to keyboard
buffer like in __KEYBOARD() function.
* harbour/include/hbgtcore.h
* harbour/src/rtl/hbgtcore.c
* modified hb_inkeySetText() (PRG __KEYBOARD() function) to translate
passed string into unicode values
This modification affects also HB_GTI_CLIPBOARDPASTE
* harbour/include/hbgtcore.h
! fixed typo in HB_GTSELF_KEYTRANS() macro.
It should also fix problem with function keys in some GTs,
i.e. ENTER in GTOS2 ALERT() reported by David.
* harbour/src/rtl/filesys.c
* use TEXT() macro
* minor modification in fs_win_get_drive()
* harbour/src/vm/hvm.c
* added protection against potential memory leak if
programmer change type of enumerated item
* utils/hbmk2/hbmk2.prg
+ added experimental framework for -ku:<cp> option. It is
processed by hbmk2 and HVM CP set appropriately before calling
the embedded Harbour compiler. As discussed here:
https://groups.google.com/d/msg/harbour-devel/a1_-DDXVVYM/CE3NspTzHV4J
I couldn't spot or test the effect of this yet.
Accepted <cp> values: "utf8", "cp1250", "cp852", etc...
+ added TODO to switch the internal codepage to UTF8EX.
it should help further in handling filenames with accents.
non-priority.
* src/rtl/menuto.prg
* formatting
* contrib/hbqt/gtqtc/gtqtc.cpp
- delete recently commented lines