subsurface/core
Lubomir I. Ivanov d4d9b840cc windows.c: fix wrong usage of wcslen() for utf8 conversation
wcslen() returns the number of characters in a wchar_t string.
In the case of WideCharToMultiByte() an estimate for the size of
the utf8 buffer is needed. Using wcslen() is incorrect for such a buffer,
because for any non-ASCII character the estimate will be off by 1 byte.

Call the following instead to obtain the proper UTF8 buffer size
for the conversation:
  WideCharToMultiByte(CP_UTF8, 0, utf16, -1, NULL, 0, NULL, NULL);

Also fix some missing "\n" in fprintf() calls.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-12-29 18:27:21 +01:00
..
settings
subsurface-qt
android.cpp
btdiscovery.cpp
btdiscovery.h
checkcloudconnection.cpp
checkcloudconnection.h
cloudstorage.cpp
cloudstorage.h
CMakeLists.txt
cochran.c
cochran.h
color.cpp
color.h
compressibility.r
configuredivecomputer.cpp
configuredivecomputer.h
configuredivecomputerthreads.cpp
configuredivecomputerthreads.h
connectionlistmodel.cpp
connectionlistmodel.h
datatrak.c
datatrak.h
deco.c
deco.h
device.c
device.h
devicedetails.cpp
devicedetails.h
display.h
dive.c
dive.h
divecomputer.cpp
divecomputer.h
divelist.c
divelist.h
divelogexportlogic.cpp
divelogexportlogic.h
divesite-helper.cpp
divesite.c
divesite.h
divesitehelpers.cpp
divesitehelpers.h
downloadfromdcthread.cpp
downloadfromdcthread.h
equipment.c
errorhelper.c
exif.cpp
exif.h
file.c
file.h
format.cpp
format.h
gas-model.c
gaspressures.c
gaspressures.h
gettext.h
gettextfromc.cpp
gettextfromc.h
git-access.c
git-access.h
gpslocation.cpp
gpslocation.h
imagedownloader.cpp
imagedownloader.h
import-cobalt.c
import-csv.c
import-csv.h
import-divinglog.c
import-shearwater.c
import-suunto.c
ios.cpp
isocialnetworkintegration.cpp
isocialnetworkintegration.h
libdivecomputer.c
libdivecomputer.h
liquivision.c
load-git.c
macos.c
membuffer.c
membuffer.h
metadata.cpp
metadata.h
metrics.cpp
metrics.h
ostctools.c
parse-xml.c
parse.c
parse.h Parser: make parser (mostly) reentrant 2018-10-23 08:06:17 +01:00
planner.c
planner.h
plannernotes.c
pluginmanager.cpp
pluginmanager.h
pref.h
profile.c
profile.h
qt-ble.cpp
qt-ble.h
qt-gui.h
qt-init.cpp
qthelper.cpp
qthelper.h
qtserialbluetooth.cpp
save-git.c
save-html.c
save-html.h
save-xml.c
serial_ftdi.c
sha1.c
sha1.h
ssrf.h
statistics.c
statistics.h
strndup.h
strtod.c
subsurface-string.h
subsurfacestartup.c
subsurfacestartup.h
subsurfacesysinfo.cpp
subsurfacesysinfo.h
taxonomy.c
taxonomy.h
time.c
uemis-downloader.c
uemis.c
uemis.h
units.h
unix.c
version.c
version.h
videoframeextractor.cpp
videoframeextractor.h
webservice.h
windows.c windows.c: fix wrong usage of wcslen() for utf8 conversation 2018-12-29 18:27:21 +01:00
windowtitleupdate.cpp
windowtitleupdate.h
worldmap-options.h
worldmap-save.c
worldmap-save.h
xmp_parser.cpp
xmp_parser.h