Commit Graph

9 Commits

Author SHA1 Message Date
Przemyslaw Czerpak
aae6eda0c0 2012-03-30 15:53 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/include/hbwinuni.h
    ! fixed typos in HB_FSNAMECONV() definition

  * harbour/src/rtl/filesys.c
  * harbour/src/rtl/fstemp.c
  * harbour/src/rtl/fslink.c
  * harbour/src/rtl/hbcom.c
  * harbour/contrib/hbmzip/mzip.c
    ! fixed casting in recent modifications (missing const)

  * harbour/src/rtl/gtcrs/hb-charmap.def
    * formatting
2012-03-30 13:53:42 +00:00
Viktor Szakats
8ebe50a5ce 2012-03-30 12:07 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/rtl/fslink.c
  * contrib/hbmzip/mzip.c
    ! fixed missing Windows macro for legacy C compilers (bcc, lcc, dmc)
      regression from 2012-03-28 20:09 UTC+0200 and 2012-03-19 12:55 UTC+0100
      reported by Grigory Filatov
2012-03-30 10:09:44 +00:00
Viktor Szakats
c41dffe86e 2012-03-29 03:45 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/rtl/fstemp.c
    * hb_fsCreateTempEx(): changed to have only one return point
    ! hb_fsCreateTempEx(): do not call hb_fsNameConv() before
      calling hb_fsCreateEx(). Latter does this since a few
      commits, causing a regression here.
    ! low level hb_fsTempName() fixed to use HB_FSNAMECONV()
      instead of HB_TCHAR_*() macros. This is slightly inappropriate
      for 'prefix' parameter, but will do for now.
    ! low level hb_fsTempName() fixed to convert back result
      to _SET_OSCODEPAGE. This fixes caller hb_fsCreateTemp()
      which passes the value to hb_fsCreateEx().
    ! hb_fsTempDir(): fixed to convert result to _SET_OSCODEPAGE.
    ; NOTE: These are supposed to fix some recent and not so recent
            oddities with HB_FCREATETEMP[EX]() and HB_DIRTEMP()
            functions when used with non-ASCII chars, especially
            on Windows. Tests done only on Windows, please review
            and test, also on other platforms, non-UNICODE mode.
            Regressions are possible.
            Oddly, HB_FCREATETEMP() won't work well without properly
            set _SET_OSCODEPAGE, probably something requiring further
            fixes (and/or internal unicode support?).
    ; NOTE: As a loose rule of thumb, each Harbour high-level (.prg)
            and low-level (.c) public APIs should expect and return
            strings in _SET_CODEPAGE, while applying FSCONV transformations
            on input filenames, and converting to/from _SET_OSCODEPAGE
            when interfacing with OS-level FS APIs (_SET_OSCODEPAGE
            should be ignored if OS-level FS APIs are capable of
            handling unicode, f.e. in Windows default build mode).
            Currently, low-level code uses a mixture of different
            methods to achieve this, HB_TCHAR_* macros and equivalent
            APIs, HB_FSNAMECONV(), hb_osDecodeCP()/hb_osEncodeCP(),
            hb_fsNameConv(), Str API.

  * contrib/hbmzip/mzip.c
    + Changed to use HB_FSNAMECONV() instead of HB_TCHAR_*() macros.
    
  ; review me!
2012-03-29 01:45:42 +00:00
Przemyslaw Czerpak
f16d91f1c4 2012-03-19 12:55 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/contrib/hbmzip/mzip.c
    ! fixed typo in DOS/Windows/OS2 READONLY attribute translation
    ! fixed EXECUTE attribute setting for *.sh files extracted
      from non *nix ZIP archives
    % eliminated repeated GetFileAttributes() calls in windows builds
    ! fixed attribute setting in *nix builds when filenames are
      translated due to some of filename releated _SET_* settings.
    ! enable (unintentionally disabled by typo) automatic attribute
      translation for archives created in DOS/Windows/OS2 without
      *nix attributes (i.e. by some local ZIP implementations)

  * harbour/contrib/hbmzip/tests/myunzip.prg
    ! translate datetime to date before is shown on the screen - it fixes
      output formatting
2012-03-19 11:55:45 +00:00
Viktor Szakats
f34b6c4190 2011-10-20 15:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/hbpgsql.hbx
  * contrib/hbpgsql/hbpgsql.hbp
  - contrib/hbpgsql/hdbcpg.prg
    - Deleted HDBC class layer due references to deprecated 
      wrapper function which caused link errors in dynamic builds 
      or HDBC apps. Please readd the file if interested in making 
      this technially simple fix.

  * contrib/hbmzip/mzip.c
    % eliminated one local variable in HB_UNZIPFILEREAD()

  * contrib/hbziparc/ziparc.prg
    + HB_UNZIPFILE(): added progress bar support.
      Patch by Leandro Damasio, with following changes:
        ! refixed to use cPath when forming target filename
        ! missing hHandle declaration
        % FERASE() removed, FCREATE() will recreate it
        % Left() eliminated from FWRITE() call
        * minor symbol casing
    ; I didn't test this code, so please do it.
2011-10-20 13:22:12 +00:00
Viktor Szakats
6504378b2a 2011-09-24 11:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmzip/mzip.c
    ! HB_UNZIPFILEINFO(): date returned was off by one month.
      Report and fix by Juan Galvez.
2011-09-24 09:50:54 +00:00
Viktor Szakats
7e3baa6da0 2011-05-19 14:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmzip/mzip.c
    * formatting
2011-05-19 12:55:42 +00:00
Viktor Szakats
9d9bea845c 2011-05-19 14:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmzip/mzip.c
    ! fixed to honor core filename settings and OS codepage
    ! fixed OS/2 to check for wrong filename in hb_zipStoreFile()
      when finding out file attributes.
    ; please review me and beware of regressions both build-time
      and runtime.
2011-05-19 12:50:45 +00:00
Viktor Szakats
41b30322cf 2011-02-05 11:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmzip/hbmzip.hbp
  + contrib/hbmzip/hbmzip.hbx
  - contrib/hbmzip/hbmzip.c
  + contrib/hbmzip/mzip.c
  * contrib/hbmemio/hbmemio.hbp
  + contrib/hbmemio/hbmemio.hbx
  * contrib/hbzebra/hbzebra.hbp
  + contrib/hbzebra/hbzebra.hbx
    + Added .hbx files and included them in .hbp.
    * Renamed sources with colliding (with .hbx) names.

  * contrib/hbrunext/hbrunext.hbp
  * contrib/hbrunext/pullext.prg
    + Added hbmzip and hbmemio.

  * contrib/hbgt/hbgt.hbx
  * contrib/hbsms/hbsms.hbx
  * contrib/hbnf/hbnf.hbx
  * contrib/hbclipsm/hbclipsm.hbx
  * contrib/hbcomm/hbcomm.hbx
    * Regenerated.
2011-02-05 10:32:50 +00:00