Huxy
e7a28ddc82
Fixed VS2015 error; snprintf std is now included
pirms 8 gadiem
Sam Hocevar
558812d3fe
Update copyright information.
pirms 8 gadiem
Sam Hocevar
d33e961dc9
Only declare weak symbols if the runtime doesn’t have them. Fixes #8 .
pirms 8 gadiem
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.
pirms 8 gadiem
Sam Hocevar
f7afe3fe05
Remove mention of Travis-CI not allowing libimlib2-dev and ruby-minitest.
pirms 8 gadiem
Sam Hocevar
2b68df927b
Trick Travis-CI into installing libslang2-dev.
pirms 8 gadiem
Sam Hocevar
8757e80e43
Try to make Travis-CI tests pass on OS X.
pirms 8 gadiem
Sam Hocevar
9af0319219
Autodetect ruby-minitest. Travis-CI doesn’t have it yet.
pirms 8 gadiem
Sam Hocevar
3fef621bb1
Disable Travis-CI shallow clones.
This feature messes up with our Git checking history.
pirms 8 gadiem
Sam Hocevar
cc4640f1a0
Fix a bug in check-copyright.
pirms 8 gadiem
Sam Hocevar
9b14aa4d05
Move many build files to the build subdirectory.
pirms 8 gadiem
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.
pirms 8 gadiem
Sam Hocevar
b078ba646b
Tell Travis CI to install ruby-minitest for Debian/Ubuntu builds and build-depend
on the current ruby-dev instead of a specific version.
pirms 9 gadiem
Sam Hocevar
2beb644476
Fix the java bindings build by updating AM_CPPFLAGS.
pirms 9 gadiem
Sam Hocevar
06f3bf04e9
Add Travis CI integration.
pirms 9 gadiem
alxf
203d33361e
Merge pull request #5 from alxf/python
Fix python 3 issue
pirms 9 gadiem
Alex Foulon
0baf2fde06
fix python3 issue again.
pirms 9 gadiem
Alex Foulon
551ad91775
python: fix python3 problem
pirms 9 gadiem
Alex Foulon
b97a47705f
python: fix drawing.py example
pirms 9 gadiem
alxf
d3cc67da08
Merge pull request #2 from artygus/x11_input_init_check
x11 driver: handle errors caused by missing locales
pirms 9 gadiem
alxf
fdb67c5c9b
Merge pull request #1 from artygus/master
Fix cocoa check on osx mavericks and above
pirms 9 gadiem
Sam Hocevar
5b50cfa59c
test: refactor a lot of test suite related stuff.
pirms 9 gadiem
Sam Hocevar
eae8918745
ruby: update the testsuite to match Ruby API changes.
pirms 9 gadiem
Sam Hocevar
d3c5bce620
misc: fix unit test failures.
pirms 9 gadiem
Sam Hocevar
c3276fbd03
doc: update for doxygen 1.8.9.1.
pirms 9 gadiem
Sam Hocevar
92d6ac3a71
build: now working on 0.99.beta20.
pirms 9 gadiem
Sam Hocevar
6190f41fc8
build: update bootstrap script.
pirms 9 gadiem
Sam Hocevar
32f430e69d
examples: remove cross-directory build dependencies.
pirms 9 gadiem
Sam Hocevar
55f85166e5
x11: replace deprecated XKeycodeToKeysym() with XLookupKeysym().
pirms 9 gadiem
artygus
239b223fff
x11 driver: handle errors caused by missing locales
pirms 9 gadiem
artygus
4ae4579b17
fix cocoa check on osx mavericks and above
pirms 9 gadiem
Sam Hocevar
e569ea4b33
caca-sharp: fix an ABI mismatch bug.
pirms 10 gadiem
Sam Hocevar
4aaca9b11a
doc: update for doxygen 1.8.7.
pirms 10 gadiem
Sam Hocevar
3791c06647
doc: update the Doxygen configuration file.
pirms 10 gadiem
Sam Hocevar
44317430a1
misc: some source code cleanup.
pirms 10 gadiem
Pascal Terjan
caae67dce5
Fill in the correct array (coverity)
pirms 11 gadiem
Pascal Terjan
2ec11a8d96
Test limits before accessing the array (coverity)
pirms 11 gadiem
Pascal Terjan
707eccb851
Fix 2 buffers leaking even if we exist just afterwards (coverity)
pirms 11 gadiem
Pascal Terjan
c80bd429bd
Don't leak fd when malloc fails (coverity)
pirms 11 gadiem
Sam Hocevar
a836967426
attr: fix a very old bug in caca_attr_to_ansi_fg.
pirms 11 gadiem
Sam Hocevar
2731717bee
codec: add import code for .BIN binary ANSI files.
pirms 11 gadiem
Sam Hocevar
298edbc8bd
codec: fix \t handling in the text importer.
pirms 11 gadiem
Alex Foulon
237f946a2e
Fixed character attribute in ncurses driver.
pirms 11 gadiem
Alex Foulon
34d172f0f2
Fixed typo in driver/x11.c.
pirms 11 gadiem
Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
pirms 12 gadiem
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.
pirms 12 gadiem
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>.
pirms 12 gadiem
Sam Hocevar
26d01d6307
build: fix copyright date in old files.
pirms 12 gadiem
Sam Hocevar
f1096cbb73
build: make the build process less verbose.
pirms 12 gadiem
Sam Hocevar
a9a6d2c6a8
examples: fix a potential buffer overflow in the canvas example, triggered
when BUFSIZ is smaller than 1000. Bug found and patch sent by Bastian
Märkisch <bmaerkisch@web.de>.
pirms 12 gadiem