Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,17 @@ Install

```shell
brew update
brew install xz binutils coreutils curl gettext libtool openssl pkgconfig meson ninja
brew install xz meson ninja curl gettext openssl pkgconfig
brew upgrade
```

4. Configure, build and install
4. Configure, build and install *REVISION PENDING*

```shell
export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig"
./autogen.sh --prefix="$(brew --cellar)/lib3270/5.4" --with-libiconv-prefix=$(brew --prefix gettext)
make all && make install
meson setup --reconfigure --wipe .build
meson compile -C .build
meson install -C .build
brew link lib3270
```

Expand Down
3 changes: 2 additions & 1 deletion src/include/private/intl.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#include <libintl.h>
#define _( x ) dgettext(GETTEXT_PACKAGE,x)
#define N_( x ) x
#else
#else
#define _( x ) x
#define N_( x ) x
#define dgettext(p,x) x
#endif // HAVE_LIBINTL
1 change: 1 addition & 0 deletions src/library/ft/ft.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <lib3270/log.h>
#include <internals.h>
#include <lib3270/trace.h>
#include <private/intl.h>

#include <errno.h>

Expand Down
6 changes: 4 additions & 2 deletions src/library/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int lib3270_loaded(void) {
ansictl.vrprnt = parse_ctlchar("^R");
ansictl.vlnext = parse_ctlchar("^V");

#ifdef _WIN32
#if defined(_WIN32)
{
char lpFilename[4096];

Expand All @@ -116,11 +116,13 @@ int lib3270_loaded(void) {
strncat(lpFilename,"locale",4095);
bindtextdomain(GETTEXT_PACKAGE,lpFilename);
}
#else
#elif defined(HAVE_LIBINTL)
bindtextdomain(GETTEXT_PACKAGE, LIB3270_STRINGIZE_VALUE_OF(LOCALEDIR));
#endif // _WIN32

#if defined(HAVE_LIBINTL)
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
#endif // HAVE_LIBINTL

#ifdef HAVE_LIBCURL
trace("%s.curl_global_init",__FUNCTION__);
Expand Down
Loading