Comments (2)
And the solution I found is to add add_compile_options("/utf-8")
for MSVC compilers in CMakeLists.txt
. After doing so, the error is solved.
if(MSVC)
add_compile_options("/utf-8")
endif()
Click to expand log
F:\GitRepo\forks\rapidcsv>vcvarsall.bat x64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.19
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
F:\GitRepo\forks\rapidcsv>winmake.bat
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
-- The CXX compiler identification is MSVC 19.29.30146.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using build type 'Debug'.
-- Build tests: ON
-- Looking for C++ include codecvt
-- Looking for C++ include codecvt - found
-- Install/uninstall targets enabled.
-- Configuring done
-- Generating done
-- Build files have been written to: F:/GitRepo/forks/rapidcsv/build-debug
Test project F:/GitRepo/forks/rapidcsv/build-debug
Start 1: test001
1/90 Test #1: test001 .......................... Passed 0.16 sec
Start 2: test002
2/90 Test #2: test002 .......................... Passed 0.07 sec
Start 3: test003
3/90 Test #3: test003 .......................... Passed 0.21 sec
Start 4: test004
4/90 Test #4: test004 .......................... Passed 0.16 sec
Start 5: test005
5/90 Test #5: test005 .......................... Passed 0.04 sec
Start 6: test006
6/90 Test #6: test006 .......................... Passed 0.04 sec
Start 7: test007
7/90 Test #7: test007 .......................... Passed 0.05 sec
Start 8: test008
8/90 Test #8: test008 .......................... Passed 0.06 sec
Start 9: test009
9/90 Test #9: test009 .......................... Passed 0.05 sec
Start 10: test010
10/90 Test #10: test010 .......................... Passed 0.05 sec
Start 11: test011
11/90 Test #11: test011 .......................... Passed 0.06 sec
Start 12: test012
12/90 Test #12: test012 .......................... Passed 0.05 sec
Start 13: test013
13/90 Test #13: test013 .......................... Passed 0.06 sec
Start 14: test014
14/90 Test #14: test014 .......................... Passed 0.05 sec
Start 15: test015
15/90 Test #15: test015 .......................... Passed 0.06 sec
Start 16: test016
16/90 Test #16: test016 .......................... Passed 0.06 sec
Start 17: test017
17/90 Test #17: test017 .......................... Passed 0.06 sec
Start 18: test018
18/90 Test #18: test018 .......................... Passed 0.05 sec
Start 19: test019
19/90 Test #19: test019 .......................... Passed 0.05 sec
Start 20: test020
20/90 Test #20: test020 .......................... Passed 0.06 sec
Start 21: test021
21/90 Test #21: test021 .......................... Passed 0.06 sec
Start 22: test022
22/90 Test #22: test022 .......................... Passed 0.19 sec
Start 23: test023
23/90 Test #23: test023 .......................... Passed 0.18 sec
Start 24: test024
24/90 Test #24: test024 .......................... Passed 0.05 sec
Start 25: test025
25/90 Test #25: test025 .......................... Passed 0.05 sec
Start 26: test026
26/90 Test #26: test026 .......................... Passed 0.06 sec
Start 27: test027
27/90 Test #27: test027 .......................... Passed 0.05 sec
Start 28: test028
28/90 Test #28: test028 .......................... Passed 0.06 sec
Start 29: test029
29/90 Test #29: test029 .......................... Passed 0.06 sec
Start 30: test030
30/90 Test #30: test030 .......................... Passed 0.06 sec
Start 31: test031
31/90 Test #31: test031 .......................... Passed 0.08 sec
Start 32: test032
32/90 Test #32: test032 .......................... Passed 0.09 sec
Start 33: test033
33/90 Test #33: test033 .......................... Passed 0.08 sec
Start 34: test034
34/90 Test #34: test034 .......................... Passed 0.06 sec
Start 35: test035
35/90 Test #35: test035 .......................... Passed 0.09 sec
Start 36: test036
36/90 Test #36: test036 .......................... Passed 0.08 sec
Start 37: test037
37/90 Test #37: test037 .......................... Passed 0.09 sec
Start 38: test038
38/90 Test #38: test038 .......................... Passed 0.10 sec
Start 39: test039
39/90 Test #39: test039 .......................... Passed 0.06 sec
Start 40: test040
40/90 Test #40: test040 .......................... Passed 0.06 sec
Start 41: test041
41/90 Test #41: test041 .......................... Passed 0.07 sec
Start 42: test042
42/90 Test #42: test042 .......................... Passed 0.05 sec
Start 43: test043
43/90 Test #43: test043 .......................... Passed 0.09 sec
Start 44: test044
44/90 Test #44: test044 .......................... Passed 0.13 sec
Start 45: test045
45/90 Test #45: test045 .......................... Passed 0.05 sec
Start 46: test046
46/90 Test #46: test046 .......................... Passed 0.05 sec
Start 47: test047
47/90 Test #47: test047 .......................... Passed 0.12 sec
Start 48: test048
48/90 Test #48: test048 .......................... Passed 0.15 sec
Start 49: test049
49/90 Test #49: test049 .......................... Passed 0.05 sec
Start 50: test050
50/90 Test #50: test050 .......................... Passed 0.05 sec
Start 51: test051
51/90 Test #51: test051 .......................... Passed 0.05 sec
Start 52: test052
52/90 Test #52: test052 .......................... Passed 0.05 sec
Start 53: test053
53/90 Test #53: test053 .......................... Passed 0.05 sec
Start 54: test054
54/90 Test #54: test054 .......................... Passed 0.06 sec
Start 55: test055
55/90 Test #55: test055 .......................... Passed 0.05 sec
Start 56: test056
56/90 Test #56: test056 .......................... Passed 0.06 sec
Start 57: test057
57/90 Test #57: test057 .......................... Passed 0.18 sec
Start 58: test058
58/90 Test #58: test058 .......................... Passed 0.13 sec
Start 59: test059
59/90 Test #59: test059 .......................... Passed 0.05 sec
Start 60: test060
60/90 Test #60: test060 .......................... Passed 0.05 sec
Start 61: test061
61/90 Test #61: test061 .......................... Passed 0.05 sec
Start 62: test062
62/90 Test #62: test062 .......................... Passed 0.05 sec
Start 63: test063
63/90 Test #63: test063 .......................... Passed 0.05 sec
Start 64: test064
64/90 Test #64: test064 .......................... Passed 0.04 sec
Start 65: test065
65/90 Test #65: test065 .......................... Passed 0.05 sec
Start 66: test066
66/90 Test #66: test066 .......................... Passed 0.04 sec
Start 67: test067
67/90 Test #67: test067 .......................... Passed 0.06 sec
Start 68: test068
68/90 Test #68: test068 .......................... Passed 0.06 sec
Start 69: test069
69/90 Test #69: test069 .......................... Passed 0.06 sec
Start 70: test070
70/90 Test #70: test070 .......................... Passed 0.06 sec
Start 71: test071
71/90 Test #71: test071 .......................... Passed 0.05 sec
Start 72: test072
72/90 Test #72: test072 .......................... Passed 0.04 sec
Start 73: test073
73/90 Test #73: test073 .......................... Passed 0.05 sec
Start 74: test074
74/90 Test #74: test074 .......................... Passed 0.05 sec
Start 75: test075
75/90 Test #75: test075 .......................... Passed 0.05 sec
Start 76: test076
76/90 Test #76: test076 .......................... Passed 0.05 sec
Start 77: test077
77/90 Test #77: test077 .......................... Passed 0.05 sec
Start 78: test078
78/90 Test #78: test078 .......................... Passed 0.05 sec
Start 79: test079
79/90 Test #79: test079 .......................... Passed 0.21 sec
Start 80: test080
80/90 Test #80: test080 .......................... Passed 0.11 sec
Start 81: test081
81/90 Test #81: test081 .......................... Passed 0.05 sec
Start 82: test082
82/90 Test #82: test082 .......................... Passed 0.05 sec
Start 83: test083
83/90 Test #83: test083 .......................... Passed 0.05 sec
Start 84: test084
84/90 Test #84: test084 .......................... Passed 0.05 sec
Start 85: test085
85/90 Test #85: test085 .......................... Passed 0.05 sec
Start 86: test086
86/90 Test #86: test086 .......................... Passed 0.06 sec
Start 87: test087
87/90 Test #87: test087 .......................... Passed 0.08 sec
Start 88: test088
88/90 Test #88: test088 .......................... Passed 0.51 sec
Start 89: test089
89/90 Test #89: test089 .......................... Passed 0.14 sec
Start 90: test090
90/90 Test #90: test090 .......................... Passed 0.04 sec
100% tests passed, 0 tests failed out of 90
Total Test time (real) = 7.12 sec
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22621.
-- The CXX compiler identification is MSVC 19.29.30146.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using build type 'Release'.
-- Build tests: ON
-- Looking for C++ include codecvt
-- Looking for C++ include codecvt - found
-- Install/uninstall targets enabled.
-- Configuring done
-- Generating done
-- Build files have been written to: F:/GitRepo/forks/rapidcsv/build-release
UpdateCTestConfiguration from :F:/GitRepo/forks/rapidcsv/build-release/DartConfiguration.tcl
Parse Config file:F:/GitRepo/forks/rapidcsv/build-release/DartConfiguration.tcl
UpdateCTestConfiguration from :F:/GitRepo/forks/rapidcsv/build-release/DartConfiguration.tcl
Parse Config file:F:/GitRepo/forks/rapidcsv/build-release/DartConfiguration.tcl
Test project F:/GitRepo/forks/rapidcsv/build-release
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: ptest001
1: Test command: F:\GitRepo\forks\rapidcsv\build-release\Release\ptest001.exe
1: Working Directory: F:/GitRepo/forks/rapidcsv/build-release
1: Test timeout computed to be: 1500
1: Test median duration Elapsed 11773 us
1/2 Test #1: ptest001 ......................... Passed 0.19 sec
test 2
Start 2: ptest002
2: Test command: F:\GitRepo\forks\rapidcsv\build-release\Release\ptest002.exe
2: Working Directory: F:/GitRepo/forks/rapidcsv/build-release
2: Test timeout computed to be: 1500
2: Test median duration Elapsed 6561 us
2/2 Test #2: ptest002 ......................... Passed 0.12 sec
100% tests passed, 0 tests failed out of 2
Total Test time (real) = 0.32 sec
from rapidcsv.
Hi @hwhsu1231 - thanks for reporting the issue and providing a proposed fix!
Will try to get this merged soon.
from rapidcsv.
Related Issues (20)
- sign-conversion warnings HOT 3
- Make quoting character configurable HOT 2
- `pTrim` unexpectedly fails when `pSeparator` is the space character HOT 2
- Provide imported target "rapidcsv::rapidcsv" and config files for CMake find_package HOT 4
- [bug] Cannot run `winmake.bat` directly to configure and build the project on Windows. HOT 1
- Add documentation for using package managers vcpkg/conan to fetch rapidcsv HOT 2
- Incorrect precision in default Converter.ToStr() depending on type HOT 2
- `mNumericLocale` only considers C-locale, but not C++-locale HOT 2
- Setting cell value is not working correctly with column headers offset
- Conflict caused by `typedef SSIZE_T ssize_t;` HOT 5
- Retain UTF-8 BOM on Save
- Add two SetCell methods for consistency with GetCell HOT 1
- basic_ios::clear: iostream error HOT 4
- openSUSE 15.4 / g++ v7.5.0 build warnings
- CSV files ending with a commented line without a line-break will result in the commented line as part of the final data HOT 2
- Reading empty lines not possible HOT 2
- string contains '\n' ,but not quoted HOT 4
- SetRowName didn't throw out of range when set row didn't exist HOT 1
- Bug in CSV parsing, disabling autoquotes doesn't work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rapidcsv.