aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32-gettext.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add W32-only function gpgrt_w32_override_locale.Werner Koch2018-12-071-18/+55
| | | | | | | | | | | | * src/w32-gettext.c (struct override_locale): new. (my_nl_locale_name): Take care of that. (gpgrt_w32_override_locale): New. * src/gpg-error.def.in: Add gpgrt_w32_override_locale. * src/gpg-error.c: New command --locale for Windows. -- GnuPG-bug-id: 3733 Signed-off-by: Werner Koch <[email protected]>
* w32-iconv: Remove invalid link to unicode.org in comment.Daniel Kahn Gillmor2016-11-181-1/+0
| | | | | | | | | | | | | -- http://www.unicode.org/unicode/onlinedat/languages.html currently says: The mapping information between Macintosh and Windows codes is no longer available on the Unicode site. Please consult the Macintosh and Windows developer sites. And there are no outbound links. Signed-off-by: Daniel Kahn Gillmor <[email protected]>
* w32: Confirm the 639-1 code for Venda is "ve"Daniel Kahn Gillmor2016-02-081-5/+1
| | | | | | | | | | | -- https://www.loc.gov/standards/iso639-2/php/code_changes.php says that ve is indeed the 2-character code for Venda: >> This alpha-2 ISO 639-1 code was approved in 1999 and included in >> ISO 639-1: 2002. It was mistakenly missing in earlier versions of >> the tables on the ISO639-2 web site. As of January 2003, it has >> been included.
* Convert http links to https where possible in the source.Daniel Kahn Gillmor2016-02-081-2/+2
| | | | | | | | | | | | | | | | -- * use https for bug reporting * in comments and docs, use https to refer to: - www.gnu.org - creativecommons.org - translationproject.org - mail.gnome.org - www.perl.org - www.ctan.org - www.cl.cam.ac.uk - www.ntg.nl - cygwin.com - www.ethnologue.com
* Fix windows 8bit encoding conversionAndre Heinecke2015-12-071-5/+13
| | | | | | | | | | * src/w32-gettext.c (wchar_to_native): Convert to ConsoleOutputCP. -- Just using CP_ACP did not neccessarily convert to the correct codepage as codepages might differ between ConsoleOutput and GUI output (which it usually does). This fixes encoding issues on the Windows commandline.
* Fix typos found by codespell.Justus Winter2015-11-191-1/+1
| | | | | -- Signed-off-by: Justus Winter <[email protected]>
* w32: Fix corrupted string output.Werner Koch2013-07-151-4/+18
| | | | | | | | | * src/w32-gettext.c (get_string): Pass the nul of the utf-8 string to the conversion function but keep TRANSLEN without the nul. -- The bug first occurred on Windows 8 but it is a real thing. Assuming that a malloced buffer is zeroed out is not solid assumptions ;-)
* Remove trailing spaces from w32-gettext.c.Werner Koch2013-07-151-26/+26
| | | | --
* 2010-11-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-011-1/+3
| | | | | | * src/w32-gettext.c (CreateFileA): Rename to ... (MyCreateFileA): ... this, but provide macro CreateFileA.
* s/abort/TerminateProcess/Werner Koch2010-10-311-1/+2
|
* 2010-10-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-10-291-19/+52
| | | | | | | | | | | | * src/w32-gettext.c: Guard include of <sys/types.h>. Do not include <sys/stat.h>. (CreateFileA) [HAVE_W32CE_SYSTEM]: New wrapper function. (load_domain): Use native Windows API. * src/init.c (TLS_OUT_OF_INDEXES) [HAVE_W32CE_SYSTEM, !TLS_OUT_OF_INDEXES]: Define it. (abort) [!__MINGW32CE__]: Define it.
* Add some code to allow building with MSC.Werner Koch2010-10-281-7/+7
|
* Fix initialization of static libsWerner Koch2010-09-161-2/+21
|
* Add new error code.Werner Koch2010-09-021-1/+1
| | | | | Remove comment cruft.
* Add a mapping for ESPIPE on W32CE.Werner Koch2010-03-011-1/+1
|
* Finished W32CE support.Werner Koch2010-01-211-959/+1133
|
* Add some code to build nativley under WindowsCE - not finished.Werner Koch2010-01-181-1/+9
|
* Fixed mingw build problems.Werner Koch2007-10-291-12/+4
| | | | | Updated some translations.
* Changes for building on W32 without needing libintl.Werner Koch2005-11-021-15/+11
|
* Fix last change.Marcus Brinkmann2005-10-251-3/+3
|
* 2005-10-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-251-4/+72
| | | | | | | | * src/w32-gettext.c (get_string): Remove extra arguments to utf8_to_native_invocation. (utf8_to_wchar, wchar_to_native): New function. (utf8_to_native): Rewritten.
* 2005-10-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-251-0/+1648
* src/Makefile.am (arch_sources): New variable. (libgpg_error_la_SOURCES): Add $(arch_sources). * src/gettext.h [HAVE_W32_SYSTEM]: Include w32-gettext.h. * src/w32-gettext.h: New file. * src/w32-gettext.c: New file. * src/gpg-error.h.in: Check for gcc's constructor attribute. Use it for gpg_err_init. (GPG_ERR_INITIALIZED): Define if constructor is available. * src/gpg-error.c (main) [GPG_ERR_INITIALIZED]: Don't invoke gpg_err_init. (i18n_init): Call bindtextdomain as well. Now that gpg-error has its own gettext implementation, we can't rely on it anymore. Also, repeat all the w32 stuff for fetching the registry.