Skip to content

Commit

Permalink
meson: Specify encoding to UTF-8 when building with MSVC
Browse files Browse the repository at this point in the history
Fix build on some non-US locale Windows systems

Error:
  gst-plugins-base/tools/gst-device-monitor.c(278): error C2001

https://bugzilla.gnome.org/show_bug.cgi?id=797186
  • Loading branch information
seungha-yang authored and tp-m committed Sep 21, 2018
1 parent cde4cfe commit cfc8d7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meson.build
Expand Up @@ -46,6 +46,7 @@ if cc.get_id() == 'msvc'
'/wd4146', # unary minus on unsigned (beware INT_MIN)
'/wd4244', # lossy type conversion (e.g. double -> int)
'/wd4305', # truncating type conversion (e.g. double -> float)
cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
language : 'c')
# Disable SAFESEH with MSVC for plugins and libs that use external deps that
# are built with MinGW
Expand Down

0 comments on commit cfc8d7e

Please sign in to comment.