2010-08-26 00:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* src/rtl/hbi18n2.prg
    + __I18N_POTARRAYLOAD(): UTF8 BOM support
This commit is contained in:
Viktor Szakats
2010-08-25 22:37:59 +00:00
parent 3b61c3941d
commit d6ff90787e
2 changed files with 8 additions and 0 deletions

View File

@@ -16,6 +16,10 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-08-26 00:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/hbi18n2.prg
+ __I18N_POTARRAYLOAD(): UTF8 BOM support
2010-08-25 09:40 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/hbide.qrc
+ contrib/hbide/resources/r-landscape.png

View File

@@ -120,6 +120,10 @@ FUNCTION __I18N_POTARRAYLOAD( cFile, cErrorMsg )
cErrorMsg := "cannot read from file: " + cFile
RETURN NIL
ENDIF
/* Strip UTF-8 BOM */
IF Left( cValue, 3 ) == e"\xEF\xBB\xBF"
cValue := SubStr( cValue, 4 )
ENDIF
IF !hb_eol() == _I18N_EOL
cValue := strtran( cValue, hb_eol(), _I18N_EOL )
ENDIF