Comments (3)
Looking at the error, it seems to be an encoding issue.
To confirm again, this is the test file that came with the repo? What does "file test" say?
What happens if you add a "use encoding 'utf8';" right after the line "use GetOpt::Long;" ?
from academic-writing-check.
Yes test file from repository. Added encoding does not help. Gives an extra warning:
test file:
(master *):dfc@ronin:~/0xRepos/Writing/Academic-Writing-Check$ md5sum test*
786007dd8085e884e966e726e9451f61 test
b83ef6a5c075ae8078cc88ddd10a0603 test.dh
attempted check:
(master *):dfc@ronin:~/0xRepos/Writing/Academic-Writing-Check$ ./checkwriting test
Use of the encoding pragma is deprecated at ./checkwriting line 12.
Strings with code points over 0xFF may not be mapped into in-memory file handles
Invalid argument at ./checkwriting line 140.
git diff and remotes
(master *):dfc@ronin:~/0xRepos/Writing/Academic-Writing-Check$ git remote -v
origin [email protected]:dfc/Academic-Writing-Check.git (fetch)
origin [email protected]:dfc/Academic-Writing-Check.git (push)
upstream https://github.com/devd/Academic-Writing-Check.git (fetch)
upstream https://github.com/devd/Academic-Writing-Check.git (push)
(master *):dfc@ronin:~/0xRepos/Writing/Academic-Writing-Check$ git diff upstream/master
diff --git a/checkwriting b/checkwriting
index 50dd67f..869eb9b 100755
--- a/checkwriting
+++ b/checkwriting
@@ -9,6 +9,7 @@
use strict ;
use warnings;
use Getopt::Long;
+use encoding 'utf8';
my @switch_list = ('passive','dups','weasel','abbr','typography','strunk','user');
my %options= map {$_=>1} @switch_list;
locale
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
from academic-writing-check.
I just pushed a commit that I believe should fix your bug. Can you try it (on both OSX and Debian) ?
from academic-writing-check.
Related Issues (7)
- Abbreviations: e.g. HOT 1
- href causes typography error HOT 5
- vim integration setup issue HOT 2
- Typo "in terms off" HOT 1
- Support for Ale
- Passive words HOT 1
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 academic-writing-check.