Fix the Windows build on Japanese systems.

guilib/LocalizedStrings.cpp was in ISO-8859-1.  MSVC only autodetects
UTF-8; if a file isn't UTF-8, it assumes it's in the ANSI codepage, which
depends on the build system.  That means this file was detected correctly
on US English systems (whose encoding is very similar to 8859-1), but
incorrectly on others.

This caused the compiler to choke, since it misinterprets the non-ASCII
characters as SJIS, causing the quotes after the strings to be mojibake'd
away and giving unterminated string literal errors.

Convert this file to UTF-8, so it's autodetected in any system codepage.

This needs to be tested in other build environments.  I don't expect
problems with gcc; it builds UTF-8 sources without trouble.
[win32] Fix incorrect debug output on non-ASCII system
[peripherals/udev] fixed do not close fd we got from udev and a race condition.

StopThread doesn't wait. On fast machines we do not see the race, on slow machines it can be that the tread is still running while we already unref a object from udev.
[peripherals/udev] fixed fd < 0 means error
Fix CircularCache::Open
CreateFileMapping returns "NULL" on error (not "INVALID_HANDLE_VALUE")
Merge pull request #1311 from Karlson2k/CircularCache_fix_1

[WIN32]Fix CircularCache::Open
[peripherals/udev] changed move get file descriptor to waitforupdate
[droid] - correct the git repo in the readme to point it to master
Merge pull request #1309 from huceke/peripherals

[peripherals/udev] fixed do not close fd we got from udev and a race condition
[droid] fix unfocusing of focused item after a pan gesture (scrolling)
[droid] also unfocus a focused item on any XBMC_MOUSEBUTTONUP event
[AE][WASAPI] fixes #1287 crash in WASAPI sink after changes made to unify return values of GetCacheTime.

Due to the event-driven mode of WASAPI used, where twin buffers are operated ping-pong style and upon notification of a buffer-free event an entire buffer must be written, the cache is always 50% or 100% full.

This causes issues with water-levels in the players and streams. Two methods have been tested to track the gradient cache time:
1) use of the system timer to decrement the cached duration between 100% and just under 50% resetting it each time a new buffer is written, and
2) tracking the actual audio driver's buffer pointer using non-standard system calls.

Neither solve the issue of water-levels > 50% and add significant overhead. Ultimately the returned value seems to have no impact on A/V sync and the correct buffering is achieved via AddPackets() and the buffer-empty events used in WASAPI.

This makes this sink unique from the others including DirectSound where it is possible to adhere to the function definitions. This has been clearly commented in the code.
Prevent using of uninitialized variable
"len" is used in memcpy when "m_holdmode" is "HOLDMODE_SKIP" and "m_lastevent" is "DVDNAV_BLOCK_OK"
Fix wrong teletext constant
See Teletext specification, for example http://www.etsi.org/deliver/etsi_i_ets/300700_300799/300706/01_40_57/ets_300706e01o.pdf page 93
Fix incorrect GetWindowInfo calls
Properly handle errors
Prevent using of uninitialized variable
Properly handle errors
Merge pull request #1322 from Karlson2k/Fixes_Win32_02

[win32] Some simple fixes
jsonrpc: fix invalid output of "type" in JSONRPC.Introspect