Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on Numeric QR Code #7

Open
NJBS opened this issue Oct 3, 2017 · 0 comments
Open

Exception on Numeric QR Code #7

NJBS opened this issue Oct 3, 2017 · 0 comments

Comments

@NJBS
Copy link

NJBS commented Oct 3, 2017

268 specifically seems to cause an array access exception when trying to create a version 1 numerically encoded with high error correction qr code. The qr code should be able to hold at least 17 digits if numeric so I don't think the version number is the issue here.

> encode (fromJust $ version 1) H Numeric "267"
Just ******* ***   *******
*     *    *  *     *
* *** *  * ** * *** *
* *** * ** ** * *** *
* *** *  **** * *** *
*     *  **   *     *
******* * * * *******
           *         
  * *** *** **   *  *
 *     **   **** *  *
     ***  *  * *  *  
*   *  * ** ** *** * 
 **   *       **  * *
        ***  *    *  
*******   ** ** *  * 
*     * *** ***   ** 
* *** * * *  *  * * *
* *** *     * ** * * 
* *** * **  * ** ** *
*     *  * * * ***   
*******       ** ** *

> encode (fromJust $ version 1) H Numeric "268"
Just *** Exception: (Array.!): undefined array element
> encode (fromJust $ version 1) H Numeric "269"
Just ******* ***   *******
*     * * *** *     *
* *** * *** * * *** *
* *** *  **** * *** *
* *** *   *** * *** *
*     * * *   *     *
******* * * * *******
        ***          
  *** * * ******  ***
 *   * ** * ****  ** 
 *    *   *** * * ***
* * ** ***  ***** *  
 **  ***  * * * * *  
        *** * *  * * 
*******      * *   **
*     *  ***     *   
* *** * *    ***  *  
* *** * ** *   *  *  
* *** * * ** ** ***  
*     *   * ***** ** 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant