Code Monkey home page Code Monkey logo

Comments (3)

devd avatar devd commented on May 22, 2024

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.

dfc avatar dfc commented on May 22, 2024

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.

devd avatar devd commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.