Sam Hocevar
cdfba0133b
Revert setlocale() effect as soon as possible. Closes #12 .
The Xlib and ncurses libraries query the LC_CTYPE locale value to guess
the usable character set. If the calling program did not call setlocale(),
that character set will be severely limited. Extensive Unicode support
is a reasonable libcaca user expectation.
The locale is restored as soon as possible, once the window or terminal
have been initialised. Unfortunately, the effect of setlocale() is process-
wide, and may affect other threads. This is now documented.
Note also that both Xlib and ncurses ignore the effects of uselocale()
which would have been the thread-safe solution to this problem.
преди 8 години
Sam Hocevar
8757e80e43
Try to make Travis-CI tests pass on OS X.
преди 8 години
Sam Hocevar
cc4640f1a0
Fix a bug in check-copyright.
преди 8 години
Sam Hocevar
9b14aa4d05
Move many build files to the build subdirectory.
преди 8 години
Sam Hocevar
2f1ca4a550
Refactor a few things in the makefiles.
This fixes the path to source files in some unit tests and allows
to get rid of a few duplicate lines.
преди 8 години
Sam Hocevar
5b50cfa59c
test: refactor a lot of test suite related stuff.
преди 9 години
Sam Hocevar
d3c5bce620
misc: fix unit test failures.
преди 9 години
Sam Hocevar
55f85166e5
x11: replace deprecated XKeycodeToKeysym() with XLookupKeysym().
преди 9 години
artygus
239b223fff
x11 driver: handle errors caused by missing locales
преди 9 години
Sam Hocevar
44317430a1
misc: some source code cleanup.
преди 10 години
Sam Hocevar
a836967426
attr: fix a very old bug in caca_attr_to_ansi_fg.
преди 11 години
Sam Hocevar
2731717bee
codec: add import code for .BIN binary ANSI files.
преди 11 години
Sam Hocevar
298edbc8bd
codec: fix \t handling in the text importer.
преди 11 години
Alex Foulon
237f946a2e
Fixed character attribute in ncurses driver.
преди 11 години
Alex Foulon
34d172f0f2
Fixed typo in driver/x11.c.
преди 11 години
Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
преди 12 години
Sam Hocevar
75fd8cd06f
win32: improvements to the Win32 driver by Bastian Märkisch <bmaerkisch@web.de>:
- Save and correctly restore console input mode, ie. do not
change settings of the original console.
- Fix hiding of cursor.
- Free console again if the driver actually created a new one.
- Default canvas size is current window size.
- Base calculation on current font.
- Properly handle press and release events of up to 5 mouse buttons.
- Map right mouse button to button #3 . This is a change in behaviour,
which is desirable for cross-platform codes.
- Generate two click events for double mouse clicks.
- Mouse wheel support, creates button press events. Button numbers
are identical to X11 mappings.
- Handle window buffer resize events.
преди 12 години
Sam Hocevar
97c26b9bbb
string: avoid an infinite loop with some invalid UTF-8 sequences, and add a
unit test for the problem. Bug found by Bastian Märkisch <bmaerkisch@web.de>.
преди 12 години
Sam Hocevar
26d01d6307
build: fix copyright date in old files.
преди 12 години
Sam Hocevar
bef9d0c827
misc: fix a few memory leaks and invalid memory accesses.
преди 12 години
Sam Hocevar
8046b1b287
core: fix a mistake in the caca_set_color_ansi() documentation.
преди 12 години
Sam Hocevar
28f4d43130
build: fix the OS X and Clang builds.
преди 12 години
Sam Hocevar
ab882df7b1
string: fix a potential memory corruption with caca_printf() calls done
outside the canvas.
преди 12 години
Sam Hocevar
e8db5f4629
figfont: fix uninitialised data access.
преди 12 години
Sam Hocevar
cd61fce90e
build: ship a weak symbol for vsnprintf, too, because our weak symbol for
sprintf_s uses that function and VS2010 does not strip it off even if it
is unused. Also do not use 64-bit integer division in the timer code because
that will create unwanted references to ___moddi3 and ___divdi3.
преди 12 години
Sam Hocevar
02bb261647
win32: define a custom sprintf_s() weak symbol. The VS2010 runtime does not
provide the deprecated snprintf(). The mingw32 runtime does not provide the
MS-specific sprintf_s(). Mingw-w64 copes with both. So we switch to sprintf_s
but also provide it as a weak symbol so that mingw32 does not complain.
преди 12 години
Sam Hocevar
9e8c0b6a46
build: switch to subdir objects and fix copyright information in string.c.
преди 12 години
Sam Hocevar
55af141873
caca: allow to define the CACA_STATIC macro to deactivate dllimport
specifiers; this is required for proper static link.
преди 12 години
Sam Hocevar
f56be9bffa
win32: use sprintf_s and vsnprintf_s on Windows, so that our static library
works with the VS2010 runtime, too. Also reduce the stack size requirements
to avoid depending on __chkstk_ms().
преди 12 години
Sam Hocevar
b2e484ffe0
build: fix Win32 build and allow to build Win64 binaries from Linux, and
ship the static library and includes too.
преди 12 години
Sam Hocevar
6ad85219e0
build: no longer create symlinks for old libcucul stuff; it's really
gone for good.
преди 12 години
Sam Hocevar
0a9f59f386
build: fix the Visual Studio compilation, remove old solution
configuration entries, and update bootstrap script.
преди 12 години
Sam Hocevar
d736507785
build: fix copyright information.
преди 12 години
Sam Hocevar
00a285b11e
figfont: support setting the canvas width and smushing mode from the
calling application.
преди 12 години
Sam Hocevar
859804d7af
build: fix "make dist", which was broken because of the vcproj -> vcxproj
migration.
преди 12 години
Sam Hocevar
89670f0598
figfont: stick the source canvas's width, if specified.
преди 12 години
Sam Hocevar
8f1c38b695
ncurses: if terminal doesn't support curs_set(2), try curs_set(1).
преди 13 години
Sam Hocevar
9b513e786c
Fix a bug in our Xutf8LookupString() usage.
преди 14 години
Sam Hocevar
c822280896
Rename figfont into charfont. We will support far more than figfonts in
the future.
преди 14 години
Sam Hocevar
4e3e2d95d0
Fix the Win32 build: ssize_t was no longer defined.
преди 14 години
Sam Hocevar
d761415833
Convert stuff to Visual Studio 2010. It has <stdint.h>!
преди 14 години
Sam Hocevar
ae274af4a6
Minor tuning to caca_types.h.
преди 14 години
Sam Hocevar
c783e868da
Get rid of the build time generated caca_types.h. It sucked.
преди 14 години
Sam Hocevar
55263ed9cd
Link libcaca with -lgnugetopt if necessary.
преди 14 години
Sam Hocevar
3e3210abc8
Remove spurious tabs from source.
преди 14 години
Sam Hocevar
a1d0435da5
Move mygetopt() directly into libcaca, for use by other programs.
преди 14 години
Sam Hocevar
2bf74e6df7
Mark the font data as const. We no longer modify it in place.
преди 14 години
Sam Hocevar
0c16cc92f0
Comply with cygwin's curses.h implementation.
преди 14 години
Pascal Terjan
d7477e8a04
* Do not force output to be in UTF-8, some people have not switched yet...
преди 14 години
Pascal Terjan
7b4b48187e
* Fix using dead keys on my us_intl keyboard
- Ignore key events when XFilterEvent returns true
- Do not set key to 0 when it is over 128
преди 14 години